Monday, August 29, 2005
Upgrading eclipse
Ok,
So recently I've migrated some of my projects to a new machine, and downloaded the newest version of Eclipse. I've done this before and knew that the .metadata folder was no good so I blew that away before anything. Then open Eclipse point to the workspace and create the new project. So Eclipse sees the .Project & .classpath files and loads the build path and everything. It was simple to recreate the dependencies because I had a JAR_RESOURCES variable that pointed to my jar directory. So all I had to do was define that variable and my build path should be set right? Wrong. Look at this error:
Here is the error in the Problems view:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
So here is the line in my .classpath file that is doing this:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/j2re1.4.2_03"/&^gt;
I had to change this line to read:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
Then I cleaned the project and it build fine. I figured this out by creating a new project in new workspace and examining its .classpath file. I'm not exactly sure how my original .classpath file got screwed up, but it somehow did. I think that it should have been fixed automagically, or idlest I should have been told how to fix it. What would have happened if I wasn't that familiar with Eclipse? I would have been up the creek without a paddle. I imagine I'd have to delete the projects and all the files associated with them and re-define everything. Idlest the problem is not fixed...no I have to see if my Ant will allow me to build it, something tells me I'll have problems with that too [see previous blog related to that :)]



