[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie trying...


I'm very impressed by the achieved work !
I want to write my own client so i decide to begin with a modified version
of SimpleChat...

If a use :
jaco javaclients.chat.SimpleChat -name <nickname>

This work perfectly but, if i compile le SimpleChat.java, then I can't run
it like :
java SimpleChat ...

It's not working he say that :
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleChat (wrong
name: javaclients/chat/
        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)

Hmmm but there is a main so i don't understand :\

Thanks for help