Linux -Fatal Error: Unable to find package java.lang[SOLVED]

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

Moderators: 99jonathan, roger, imaqine

Linux -Fatal Error: Unable to find package java.lang[SOLVED]

Postby Diego » Fri Jul 20, 2007 8:51 am

I have a little problem. I've builded and configured leJOS 0.3 on Debian GNU/Linux unstable. My NXT has been flashed with lejOS successfully but now I can't compile the sample program:
Code: Select all
diego@lain:/opt/lejos_nxj/samples/Tune$ nxjc Tune.java
Fatal Error: Unable to find package java.lang in classpath or bootclasspath


This is my env (CLASSPATH is not defined)
Code: Select all
diego@lain:~$ echo $NXJ_HOME
/opt/lejos_nxj
diego@lain:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/opt/lejos_nxj/bin
diego@lain:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun


Can you help me please? :)

(Sorry for the re-post)
Diego
New User
 
Posts: 1
Joined: Thu Jul 19, 2007 9:06 pm

Postby lawrie » Sat Jul 21, 2007 9:40 am

There is a bug in the Linux version of nxjc, that I am surprised that nobody else has hit yet.

Edit lejos_nxj/bin/nxjc.bat and change:

$NXJ_HOME\lib\classes.jar

to

$NXJ_HOME/lib/classes.jar
lawrie
leJOS Team Member
 
Posts: 934
Joined: Mon Feb 05, 2007 1:27 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 3 guests

more stuff