[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie trying...
Georges Gomes wrote:
>
> Hi!
>
> 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 ...
Above there is the package name missing:
java javaclients.chat.SimpleChat -name Georges
is correct.
Are there any errors when compiling?
If not, i believe your CLASSPATH is set wrong, becuse it
does not find javaclients.chat.SimpleChat.
hope this helps,
Marcel
>
> It's not working he say that :
> Exception in thread "main" java.lang.NoClassDefFoundError: SimpleChat (wrong
> name: javaclients/chat/
> SimpleChat)
> 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
>
> Georges
--
Marcel Ruff
mailto:ruff at swand.lake.de
http://www.lake.de/home/lake/swand/
http://www.xmlBlaster.org