Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot Resolve Symbol - System.out

807597Mar 17 2005 — edited Mar 18 2005
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 ;)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2005
Added on Mar 17 2005
5 comments
224 views