Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to import a Java project to Eclipse?
How to import a Java project to Eclipse? [message #1802296] Wed, 06 February 2019 05:11 Go to next message
Henry Skertchly is currently offline Henry SkertchlyFriend
Messages: 1
Registered: January 2019
Junior Member
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:OpenVINO
Next Topic:Driver type 'JdbcDriver' is not supported
Goto Forum:
  


Current Time: Tue Apr 23 06:16:30 GMT 2024

Powered by FUDForum. Page generated in 0.08205 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top