Hi All. I posted this elsewhere, but it was at the end of a topic with a solved problem, so I'm afraid nobody will see it...
I'm using JDK1.3 on win2k, and suddenly my classpath is not working. For the last 8 months, under win2k my classpath has been:
C:\java\jdk1.3\bin;C:\java;
(and before that, JDK1.2.2, and JDK 1.2)and it worked just fine. My projects compiled and ran from the command line.
My classes are in packages:
C:java\org\temiqui\mypackages and they all begin with:
Package org.temiqui.mypackage;
So, in setting up
JDBC, I added to my classpath, although I didn't expect I'd have to, since it's in the org folder:
C:\java\org\gjt\mm\mysql;
Which worked for the database project I was working on in Forte, and from the command line. But now none of my other projects will run. They compile fine, but I get a bunch of classLoader exceptions when I try to run them. Forte and Together both agree my package definitions are "illegal" ???
I tried adding the dot:
\java\jdk1.3\bin;C:\java;C:\java\org\gjt\mm\mysql;.
That didn't help either. Is there any way this can get corrupted in the registry or someplace else under win2000? It just plain seems weird. Here's the output....
Thanks,
eric
********************************************************** C:\Java\org\temiqui\calendartable>
java CalendarTableApp
Exception in
thread "main" java.lang.NoClassDefFoundError: CalendarTableApp (wro
ng name: org/temiqui/calendartable/CalendarTableApp)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)