NXTway - GS / Segway

Post your NXJ projects, project ideas, etc here!

Moderators: roger, 99jonathan, imaqine

NXTway - GS / Segway

Postby bruder11 » Sat Dec 29, 2012 2:21 pm

Hey,

I've took the Source Code from here and paste it in my Eclipse.
Eclipse reported an error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: lejos.nxt.debug.DebugInterface.setDebug()V
at lejos.nxt.debug.DebugInterface.setDebug(Native Method)
at lejos.nxt.debug.DebugInterface.<init>(DebugInterface.java:35)
at lejos.nxt.debug.DebugInterface.<clinit>(DebugInterface.java:12)
at lejos.nxt.debug.DebugMonitor.monitorEvents(DebugMonitor.java:127)
at lejos.nxt.debug.DebugMonitor.main(DebugMonitor.java:145)


I d'ont know why this error is there, can somebody help me, please?
With other programms, that I write myself, there's no problem.

Thanks
bruder11
New User
 
Posts: 3
Joined: Sat Dec 29, 2012 2:13 pm

Re: NXTway - GS / Segway

Postby skoehler » Sat Dec 29, 2012 2:28 pm

You're trying to run the program with the JVM on your PC.
In Eclipse, right click on the main class and select Run As -> LeJOS NXT Program.
If that is not available, you don't have the plug-in installed or the Eclipse project is of the wrong type.
You best follow our tutorial:
http://lejos.sourceforge.net/nxt/nxj/tu ... ipse.htm#8
skoehler
leJOS Team Member
 
Posts: 1128
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXTway - GS / Segway

Postby bruder11 » Sat Dec 29, 2012 3:01 pm

Thank you, you really helped me. That was because I created a new project, in the old project I can chose "LeJOS NXT Program". But now I get a linking error.

Linking ...
js.tinyvm.TinyVMException: main method not found, program has no entry point
at js.tinyvm.Binary.markUsed(Binary.java:579)
at js.tinyvm.Binary.createFromClosureOf(Binary.java:316)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
at lejos.pc.tools.NXJLink.main(NXJLink.java:28)
Linking the file failed with exit status 1


I hope you can help me.

Thanks
bruder11
New User
 
Posts: 3
Joined: Sat Dec 29, 2012 2:13 pm

Re: NXTway - GS / Segway

Postby skoehler » Sat Dec 29, 2012 3:07 pm

Every Java program must have a main method. We do provide a sample called segwaypilotdemo.
skoehler
leJOS Team Member
 
Posts: 1128
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXTway - GS / Segway

Postby bruder11 » Sat Dec 29, 2012 3:48 pm

Thank you!
Now it works! I'm enthusiastic.
bruder11
New User
 
Posts: 3
Joined: Sat Dec 29, 2012 2:13 pm


Return to NXJ Projects

Who is online

Users browsing this forum: No registered users and 0 guests

more stuff