java.lang.NoClassDefFoundError: samples/SerialDemo/SerialDemo (wrong
name: SerialDemo)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
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)
Exception in thread "main"
Also, I have put each of the appropriate JavaComm files in each of the
JVM trees:
C:\Program Files\JavaSoft\jre\1.3.1\bin\Win32com.dll
C:\Program Files\JavaSoft\jre\1.3.1\lib\javax.comm.properties
C:\Program Files\JavaSoft\jre\1.3.1\lib\ext\comm.jar
C:\Java\jdk1.3.1_01\bin
C:\Java\jdk1.3.1_01\bin\lib
C:\Java\jdk1.3.1_01\bin\lib\ext
C:\Java\jdk1.3.1_01\jre\bin
C:\Java\jdk1.3.1_01\jre\lib
C:\Java\jdk1.3.1_01\jre\lib\ext
Any help would be greatly appreciated.
Thanks,
Wes
That just shows that the classpath is wrong. You're trying to run it as
if it were a class samples.SerialDemo.SerialDemo, when in fact it's just
SerialDemo - ie put samples/SerialDemo in the classpath instead of the
directory above samples.
It strikes me that runnning demo code is a lot easier from *outside* an
IDE than from inside one, precisely because of issues like this.
[Removed comp.lang.java.developer, which isn't a valid newsgroup.]
--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Anyway, I have another problem if you're feeling lucky: trying to run
NB3.2.1 in Linux using the IBM JDK. It launches the splash screen and
then hangs. Any ideas?
Jon Skeet <sk...@pobox.com> wrote in message news:<MPG.16561eba3...@mrmog.peramon.com>...
No, not really. It's generally easier to organise your own code in a way
that the IDE likes than it is to persuade the IDE to accept how someone
else has organised their code. Shame, but true.
> Anyway, I have another problem if you're feeling lucky: trying to run
> NB3.2.1 in Linux using the IBM JDK. It launches the splash screen and
> then hangs. Any ideas?
NB3.2.1? What's that?
Jon Skeet wrote:
> Wes Crucius <wcru...@sandc.com> wrote:
[...]
> > Anyway, I have another problem if you're feeling lucky: trying to run
> > NB3.2.1 in Linux using the IBM JDK. It launches the splash screen and
> > then hangs. Any ideas?
> NB3.2.1? What's that?
This is the latest release of NetBeans:
http://www.netbeans.org/downloads.html
Linda
--
_ " _ When the fantasy bells of the universe ring You can
(_\|/_) fly through the sky on a dragonfly's wing - There is
(/|\) magic within, there is magic without
Kate Bush, The Magician of Lublin
you didn't mount the right directory. If there was no package defined for
the JavaComm samples you mount the directory that the files are in.
Everything should have worked fine then.
--
Joe
"I bent my wookie" - Ralph Wiggum