How to import a Java project to Eclipse? [message #1802296] |
Wed, 06 February 2019 05:11  |
Eclipse User |
|
|
|
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)
|
|
|
Re: How to import a Java project to Eclipse? [message #1802305 is a reply to message #1802296] |
Wed, 06 February 2019 07:34  |
Eclipse User |
|
|
|
That export step create a jar with the *.class files that can be used at runtime to use those libraries. If you want to export the project source itself and import it elsewhere use File -> Export -> General -> Archive File and select the projects you want to export; you may wish to exclude the bin folders (with the compiled *.class files) to make the archive smaller. Then in another IDE you can use File -> Import... -> General -> Existing Projects into Workspace (note the asymmetry of the wizards used for exporting versus importing), and choose the "Select archive file" radio button to import the projects for the exported projects archive.
|
|
|
Powered by
FUDForum. Page generated in 0.05267 seconds