0

I have tried importing a workspace from another user profile in eclipse. Every jar file is pointing to the user profile. Can i change the paths of the JAR's to my profile ?

Richy
  • 11
  • 2

3 Answers3

0

Does the project use Maven or some other build tool? If so, just delete the Eclipse files/directories such as .project, .classpath, and .settings and import.

Otherwise, try exporting the project from the old workspace, though you may have to manually add the Libraries afterwards

Jano Janahan
  • 101
  • 3
  • I dont know whether the previous user has used Maven or not? I have just copied his workspace. Is there any way i can find that ? – Richy Jun 29 '15 at 12:44
0

Click Import and then choose "General" -> "Existing Projects into Workspace" and search the Directory.

If that doesn't work, you have lost some files. Then simply click Import and then "General" -> "File System" and search the main folder.

Hope I could help you.

Nicola Uetz
  • 848
  • 1
  • 7
  • 25
0

There really is nothing you can do except change the path's of the JAR files manually one by one.

To prevent this happening in the future, it is recommended that you keep dependencies inside a folder named lib inside your project or use a dependency manager.

nulldev
  • 555
  • 6
  • 16
  • I have added them now. now i am getting an error saying: Description The project was not built due to "Could not write file: U:\workspace\project1\bin.". Fix the problem, then try refreshing this project and building it since it may be inconsistent – Richy Jun 29 '15 at 12:34
  • That means you do not have the permissions to write to that folder or it does not exist, first, try creating that folder if it does not already exist and then check if you have read + write permissions to it. – nulldev Jun 29 '15 at 16:27
  • Thanks... that worked out. I have many warnings for adding the jar's: Classpath entry C:/Users/jai_imageio.jar will not be exported or published. Runtime ClassNotFoundExceptions may result. how can i solve these warnings ? – Richy Jun 29 '15 at 19:19
  • Now is the time to use StackOverflow's search function :)! Try this question here: http://stackoverflow.com/questions/8884818/eclipse-warning-xxxxxxxxxxx-jar-will-not-be-exported-or-published-runtime-clas – nulldev Jun 30 '15 at 00:16
  • Thank u very much.. :D – Richy Jun 30 '15 at 00:50
  • No problem, remember to mark the question as answered :) – nulldev Jun 30 '15 at 01:20