[英]jar file made in ubuntu does not work in windows
I wrote a code in Windows using Eclipse.我使用 Eclipse 在 Windows 中编写了一段代码。 The code used JUnit.
代码使用了 JUnit。 I converted it to a .jar file Ubuntu.
我将其转换为 .jar 文件 Ubuntu。 However, when I try to open the .jar file in Windows in Eclipse, the code does not open.
但是,当我尝试在 Eclipse 中的 Windows 中打开 .jar 文件时,代码没有打开。 Instead of code, I see some random characters in Eclipse.
我在 Eclipse 中看到了一些随机字符,而不是代码。
JAR 文件是已编译的 java 文件 (.class) 的集合,如果您希望源代码在 eclipse 中打开,只需复制 .java 文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.