Hello,
I am new to the forum, and I have one question that has been bugging me. I am on a mac os x 10.6.8 with java version 1.6.0.
I am currently attempting to run the sample helloworld which came with the leJOS_NXJ download.
nxjc will compile the file fine.
I run the code found in this tutorial:
http://lejos.sourceforge.net/nxt/nxj/tu ... rogram.htm
After I compile however, I try to run this:
nxjlink -o HelloWorld.nxj HelloWorld
and I get the following error:
js.tinyvm.TinyVMException: Class java.lang.Object (file java/lang/Object.class) not found in CLASSPATH .
at js.tinyvm.ClassRecord.getClassRecord(ClassRecord.java:855)
at js.tinyvm.Binary.processClasses(Binary.java:351)
at js.tinyvm.Binary.createFromClosureOf(Binary.java:309)
at js.tinyvm.TinyVMTool.link(TinyVMTool.java:97)
at js.tinyvm.TinyVMTool.link(TinyVMTool.java:48)
at lejos.pc.tools.NXJLink.start(NXJLink.java:134)
at lejos.pc.tools.NXJLink.run(NXJLink.java:101)
at lejos.pc.tools.NXJLink.start(NXJLink.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
at lejos.pc.tools.NXJLink.main(NXJLink.java:28)
I deleted the package declaration in the HelloWorld code. I've tried many things.
Also, I can compile and run every other java program I have ever written. However, for some reason nxj is just not finding the path to java.lang.
Here is my classpath. I copied the code straight from the tutorial here:
http://lejos.sourceforge.net/nxt/nxj/tu ... tedMac.htm:
if [ $(whoami) != "root" ]; then
export NXJ_HOME="/Users/myname/JavaPkgs/leJOS_NXJ"
export LEJOS_NXT_JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"
export PATH="$NXJ_HOME/bin:$PATH"
fi
alias hello="cd /Users/myname/Desktop/Robots/sample/helloworld"
export CLASSPATH=$CLASSPATH:/System/Library/Java/Extensions:.
export CLASSPATH=$CLASSPATH:$HOME/JavaPkgs:.
If you need more info to help me out, let me know. Thanks in advance.
