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:16
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.

查看更多
淡お忘
3楼-- · 2019-01-08 22:18

Follow follwing Steps :

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

You are done.

查看更多
劳资没心,怎么记你
4楼-- · 2019-01-08 22:25

this the step u can apply to do that so.

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

查看更多
乱世女痞
5楼-- · 2019-01-08 22:28

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.

查看更多
手持菜刀,她持情操
6楼-- · 2019-01-08 22:30

Go to

File-> import Now type " existing in the search bar" Click on "import existing project into workspace" select root folder of your project

click ok to import

For video help visit https://www.youtube.com/watch?v=wsMPhZTxiF4

查看更多
时光不老,我们不散
7楼-- · 2019-01-08 22:39

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

查看更多
登录 后发表回答