Trouble linking NXT

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

Moderators: roger, 99jonathan, imaqine

Trouble linking NXT

Postby milligannn » Fri Sep 28, 2012 5:39 pm

Hi,

I have been following http://www.youtube.com/watch?annotation ... FbWrLP9vFU this tutorial on how to setup lejos on my nxt but when I try transferring one of the sample programs as is done on this tutorial it fails to link and I receive this error:

C:\Users\James\My Documents\tune>nxjc Tune.java
C:\Users\James\My Documents\tune>nxj Tune
leJOS NXJ> Linking...
js.tinyvm.TinyVMException: found class org.lejos.sample.tune.Tune instead of req
uested Tune
at js.tinyvm.ClassRecord.getClassRecord(ClassRecord.java:876)
at js.tinyvm.Binary.processClasses(Binary.java:362)
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.NXJLinkAndUpload.run(NXJLinkAndUpload.java:108)
at lejos.pc.tools.NXJLinkAndUpload.start(NXJLinkAndUpload.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
at lejos.pc.tools.NXJLinkAndUpload.main(NXJLinkAndUpload.java:42)
C:\Users\James\My Documents\tune>

Can someone please interpret this and tell me how I can get it work or what I can do?

Thanks,
James
milligannn
New User
 
Posts: 1
Joined: Fri Sep 28, 2012 5:27 pm

Re: Trouble linking NXT

Postby skoehler » Sat Sep 29, 2012 8:01 pm

Neither Tune.java nor Tune.class are in the right folder.
Move them to a subfolder called org/lejos/sample/tune
or simple change the package declaration.
skoehler
leJOS Team Member
 
Posts: 1128
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff