If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: JDBC Error

Hello guys. I desperately need some help, please. This is for my college project.
I've been getting this same error everytime I try to run the compiled java
source codes:
>java GridFrame
Exception in thread "main" java.lang.NoClassDefFoundError: GridFrame (wrong
name
: untitled24/GridFrame)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

Re: JDBC Error

Ensure the class is in your classpath. Also, the classpath can point at two
packages with the same name and the JVM will use the first one it comes to
- so if your class is in the second but not the first, it won't be found.

Re: JDBC Error

If you defined your class to be in the package "untitled24" then when you
compile it, you must ensure the **package** directory is in your classpath,
and compile it by typing "java untitled24/GridFrame".

PC2

"MarkN" <mnuttall@nospam.com> wrote in message
news:3c04f0ce@147.208.176.211...
>
> Ensure the class is in your classpath. Also, the classpath can point at
two
> packages with the same name and the JVM will use the first one it comes to
> - so if your class is in the second but not the first, it won't be found.
>
> Mark