Subject:
|
Re: java.lang.NoClassDefFoundError: josx/rcxcomm/RCXPort
|
Newsgroups:
|
lugnet.robotics.rcx.java
|
Date:
|
Tue, 16 Nov 2004 15:04:02 GMT
|
Viewed:
|
8184 times
|
| |
| |
"Laurence Rochfort" <Laurence_Rochfort@hotmail.com> writes:
> In lugnet.robotics.rcx.java, Juergen Stuber wrote:
> > "Laurence Rochfort" <Laurence_Rochfort@hotmail.com> writes:
> > >
> > > I am new to Lejos and have been trying PC <-> RCX communications.
> > >
> > > java.lang.NoClassDefFoundError: josx/rcxcomm/RCXPort
> > >
> > > My classpath looks like:
> > >
> > > .;D:\Lejos work;C:\Program Files\s1studio_jdk\j2sdk1.4.1;C:\Program
> > > Files\s1studio_jdk\j2sdk1.4.1\lib\comm.jar;c:\lejos\lib\pcrcxcomm.jar;c:\lejos\lib;C:\lejos\lib\classes.jar
> >
> > it might be the spaces in your classpath that cause the problem.
>
> Many thanks for that, but I am still getting the same
> error even when renaming my directories without spaces.
>
> Everything compiles fine, it is just when I try to run the code.
That it compiles shows that RCXPort.class is there,
it should be in c:\lejos\lib\pcrcxcomm.jar (you can check with
jar tvf c:\lejos\lib\pcrcxcomm.jar
).
So apparently the java command doesn't get the proper classpath
You can try giving it explicitly on the command line:
java -classpath ...
Hope this helps
Jürgen
--
Jürgen Stuber <juergen@jstuber.net>
http://www.jstuber.net/
gnupg key fingerprint = 2767 CA3C 5680 58BA 9A91 23D9 BED6 9A7A AF9E 68B4
Looking for consulting and project work in Mozart/Oz, Linux kernel, USB
|
|
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|