从.jar文件创建项目 [英] Create project from .jar file

查看:103
本文介绍了从.jar文件创建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将解释我需要做什么,其实我发现这个答案从JAR恢复代码这是非常接近我的需要,但有一个关键的区别。

I will explain what I need to do, in fact I found this answer Restoring code from JAR which is pretty close to my needs but with a key difference.

我有一个文件夹有许多jar文件,包括.class,而且.java应用程序的文件,我想将项目还原到任何IDE,如Eclipse或netbeans。

What I have is a folder with many jar files which include the .class but also the .java files of an application, I would like to restore the project into any IDE such as Eclipse or netbeans.

为了使其更清晰,我所拥有的结构以下:

In order to make it clearer, the structure of what I have is the following:


  • Main_directory


    • File_1.jar


      • file_1_1.java

      • file_1_1.class

      • file_1_2.java

      • file_1_2.class

      • Main_directory
        • File_1.jar
          • file_1_1.java
          • file_1_1.class
          • file_1_2.java
          • file_1_2.class

          • file_2_1.java

          • file_2_1.class

          • file_2_2.java

          • file_2_2.class

          • file_2_1.java
          • file_2_1.class
          • file_2_2.java
          • file_2_2.class

          我真的很感激任何s嗯,但我想避免使用反编译器。

          I would really appreciate any suggestions but I would like to avoid using decompilers.

          最佳.-

          推荐答案

          .jar文件可以打开,文件也可以使用tar,winrar等许多程序进行解压缩。最好的方法是考虑这些.jar文件,包含实际的.java文件是用这样的工具来提取它们,创建一个您的ide(eclipse)中的新项目,然后将.java文件导入到新项目。

          .jar files can be opened and files extracted with many programs, such as tar, winrar, etc. Your best bet, considering these .jar files contain the actual .java files is to extract them with such a tool, create a new project in your ide(eclipse) and then import the .java files to the new project.

          这篇关于从.jar文件创建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆