I've discovered that I can create a new project in Eclipse, with a HelloWorld class, and it works fine.
But I'm still trying to get my old projects working again. By adding my default JRE System Library in
Project -> Properties -> Java Build Path -> Libraries
(where for some reason this default library was missing) I am able to get rid of one of the symptoms (the red underlining of every line in a Java file and the popup tip that says
"This compilation unit indirectly references the missing type java.lang.Object ... ").
But there is still at least one remaining problem. When I create a new HellWorld class inside one of my old projects and attempt to run it as a Java Application I get this in the console:
java.lang.NoClassDefFoundError: customer/HellWorld
I guess this means that the runtime classpath is broken. But maybe not because I can't find the file HellWorld.class where it should be either, not with my eyes, even though there was no complaint when I did
Project -> Build All.
Another symptom with my broken projects is this: In the window {Project -> Properties -> Java Build Path} in the text area which runs across the top I get an error message:
Build path entry is missing: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/1.4.2
In a healthy, newly created, project this same text area says "Java Build Path".
In my broken projects there is an entry in the Libraries tab for
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/1.4.2
-- although maybe that entry is broken somehow because the little '+' sign in the tree view evaporates as soon as I click on it and no jars are listed for that entry, whereas jars are listed for all other library entries.
I'm all confused up in my pore head. Maybe it's time to just create new projects and copy all the files into them.
Thanks again for your suggestions.
Rich
T.A. Nguyen wrote:
Richard,
Occasionally I got the same problem. And those problems normally are the result of a corrupted .classpath & .project file. Mine was because of the different between different version of eclipse.
You can simple re-create these files by go to your "Project/Property/Java Build Path" and check to make sure all your library are in order and save them (click OK).
_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
