我得到了一个jar打包source code在其中的文件。我想将它作为顶级项目加载并开始处理源代码。我怎样才能在 Eclipse 中做到这一点?
例如:如果我有 helloworld.jar,当我导入这个 jar 时。我希望项目名称为 helloworld,其中包含所有包和 src。
我不希望在构建路径上使用该代码。但在我的 IDE 上使用。
创建一个名为“helloworld”的目录并将 JAR 解压到该目录中:
mkdir helloworld
cd helloworld
jar xvf ../helloworld.jar
Run Code Online (Sandbox Code Playgroud)
然后,您可以从现有源创建一个项目并开始对其进行操作。我认为 Eclipse 不会让您创建项目并直接在 JAR 中更改文件。