• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
utsav gupta
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
utsav gupta
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne.

I guess that is the only solution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic