*
The moose likes IDEs, Version Control and other tools and the fly likes how to import a jar file 'as' an eclipse project to work on it. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to import a jar file Watch "how to import a jar file New topic
Author

how to import a jar file 'as' an eclipse project to work on it.

utsav gupta
Ranch Hand

Joined: Mar 19, 2009
Posts: 57
Hi

I have a simple query which does not seem to be having a solution.

I was working on a Java project, which I had exported as a jar file to work on it in future. Now the future has come and I wanted to work on it back again. But If I import the jar file back in eclipse its folder structure is changed. There is no src folder, which is also pointed out by the eclipse. How am I supposed fix this. Do I manually have create a src folder and then copy each of the java file in the same package structure into it?

Please reply. Thanks in advance.
Utsav.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

It sounds like when you created the export, it didn't include the .classpath and .project files. Without these, Eclipse doesn't know how to recreate it. Creating the folder yourself and moving the top level Java package to it works as a solution.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
utsav gupta
Ranch Hand

Joined: Mar 19, 2009
Posts: 57
Thanks Jeanne.

I guess that is the only solution.
 
wood burning stoves
 
subject: how to import a jar file 'as' an eclipse project to work on it.