Hi,
I have already read about the same problem, which I will discribe soon and played around with my path variables but still I don't make positiv progress :(((
Ok, here is my problem. Maybe I start with the code:
import josx.rcxcomm.*;
import java.io.*;
public class PCModule
{
public static void main( String[] args )
{
recv();
}
public static void recv()
{
try
{
RCXPort port = new RCXPort();
InputStream is = port.getInputStream();
while( true )
{
System.out.println( "PCC_m: " + is.read() );
}
}
catch( IOException e )
{
System.err.println( e );
}
}
}
Problem is, that I am using leJOS for the lego mindstorms RCX brig and I don't have a clue why the compiler wont use the SDK lib. Here are the important path variables:
CLASSPATH=.;%LEJOS_HOME%/lib/classes.jar;LEJOS_HOME%/lib/pcrcxcomm.jar
PATH=...;C:\j2sdk1.4.2_07\bin;C:\lejos\bin
When I compile my test program I get the error message, the neither the variable out nor the variable err can be resolved which should mean, that the compiler is using the wrong class, or am I wrong? So my guess there is something wrong with the classpath. Does anybody konw which path should I add? Or maybe it is something else. One thing is for sure, I am slowly running crazy with this problem ;)