Error: Class PilotTester (file PilotTester.class) not found

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Error: Class PilotTester (file PilotTester.class) not found

Postby sgarib » Sat Nov 10, 2007 4:53 pm

Hello,

I'm trying to use Lejos on my NXT.

I have installed it and I'm able to compile code with no error using njxc but when I try to upload to next using njx -r PilotTester i get the following error:

samy@samuelino:/etc/lejos_nxj$ sudo bin/nxj -r samples/PilotTester/PilotTester
Linking...
Error: Class PilotTester (file PilotTester.class) not found in CLASSPATH .:/etc/lejos_nxj/3rdparty/lib/bcel-5.1.jar:/etc/lejos_nxj/3rdparty/lib/commons-cli-1.0.jar:/etc/lejos_nxj/lib/pctools.jar:/etc/lejos_nxj/lib/pccomm.jar:/etc/lejos_nxj/lib/jtools.jar:/etc/lejos_nxj/lib/classes.jar


I have setup the JAVA_HOME and NXJ_HOME correctly (I hope)

Can somebody help. Does anybody have the same problem?

Thanks in advance!.
sgarib
New User
 
Posts: 2
Joined: Sat Nov 10, 2007 4:46 pm

found it...

Postby sgarib » Sat Nov 10, 2007 5:59 pm

I ran nxj in its own path to work.
sgarib
New User
 
Posts: 2
Joined: Sat Nov 10, 2007 4:46 pm

Postby lawrie » Mon Nov 12, 2007 11:28 pm

Compile PilotTester first:

nxjc PilotTester.java

or use nxjupload to upload PilotTester.nxj.
lawrie
leJOS Team Member
 
Posts: 837
Joined: Mon Feb 05, 2007 1:27 pm


Return to NXJ Software

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron
more stuff