How to import a Java project to Eclipse?

2019-01-08 21:40发布

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 import option for java). Am I doing anything wrong here?

Using Eclipse Java EE IDE for Web Developers (Version: Juno Release)

7条回答
相关推荐>>
2楼-- · 2019-01-08 22:40

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

查看更多
登录 后发表回答