How to import a Java project to Eclipse?

前端 未结 7 1408
粉色の甜心
粉色の甜心 2020-12-01 09:51

I was trying to export a Java project. I was able to create a JAR file by using the option Export -> Java -> JAR file. I am not able to import this jar file into Eclipse (no

相关标签:
7条回答
  • 2020-12-01 10:18

    There is a simplier way than exporting and importing the jar. Lets assume your project is named MyProject123. Just:

    1. Just open the workspace with your file manager,
    2. Copy the folder MyProject123 that contains the project and paste it in an other workspace.
    3. Open eclipse and create a new Java Project named MyProject123

    Eclipse will recognize that there is a project with that name in the workspace and will import it. All you have to do is to make refresh (press F5) on the new project.

    0 讨论(0)
  • 2020-12-01 10:19

    You can import jar file from Eclipse File->Import->General->Archive File

    0 讨论(0)
  • 2020-12-01 10:20

    To be able to import the project back instead of using JAR, try using 'Archive File' as follows.

    Export to Archive

    File -> Export...

    Choose General -> Archive File as the export type like so :

    enter image description here

    and then,

    enter image description here

    Import back from the above archive

    File -> Import...

    Choose General -> Archive File and then set it up as follows :

    enter image description here

    0 讨论(0)
  • 2020-12-01 10:22
    File -> Import -> General -> Archive File
    

    This will import your project in Eclipse.

    Also, you will need to add libs/jars externally by configuring your buildpath.

    0 讨论(0)
  • 2020-12-01 10:23

    this the step u can apply to do that so.

    Import Project -> JavaEE -> App Client Jar File -> Browse and select jar -> OK

    0 讨论(0)
  • 2020-12-01 10:24

    Follow follwing Steps :

    Import Project -> JavaEE -> App Client Jar File -> Browse and select jar -> OK

    You are done.

    0 讨论(0)
提交回复
热议问题