To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 349
348  |  350
Subject: 
Re: java.lang.NoClassDefFoundError: josx/rcxcomm/RCXPort
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Tue, 16 Nov 2004 13:05:09 GMT
Viewed: 
7611 times
  
In lugnet.robotics.rcx.java, Juergen Stuber wrote:
Hi Laurence,

"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

Any suggestions would be much appreciated.

it might be the spaces in your classpath that cause the problem.


Jürgen

Juergen,

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.

Any other ideas?

Thanks again.

Laurence



Message has 1 Reply:
  Re: java.lang.NoClassDefFoundError: josx/rcxcomm/RCXPort
 
(...) 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 (...) (20 years ago, 16-Nov-04, to lugnet.robotics.rcx.java)

Message is in Reply To:
  Re: java.lang.NoClassDefFoundError: josx/rcxcomm/RCXPort
 
Hi Laurence, (...) it might be the spaces in your classpath that cause the problem. Jürgen (20 years ago, 12-Nov-04, to lugnet.robotics.rcx.java)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR