This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 30057
    
149

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to import a jar file 'as' an eclipse project to work on it.
 
Similar Threads
[Eclipse]: class Nodefound error
Maven src and netbeans
Struts Application Deployment
Adding maven projects to Servers added to Eclipse 3.4
How to read a file packaged in a jar file