On Sat, Jan 08, 2000 at 10:07:31AM +0700, yangyuexiang wrote:
> Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld (wrong
> name: examples/HelloWorld)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:442)
>  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
>  at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>  at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at
> java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
Looks to me like you are typing in:

java examples/HelloWorld

instead of:

java examples.HelloWorld

In the future, try including what you typed in and the error message
from the get go... it makes it easier to figure out what's going
wrong.

--Chris

PGP signature

Reply via email to