Error in compiling and executing USB sample code

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

Moderators: 99jonathan, roger, imaqine

Error in compiling and executing USB sample code

Postby hig » Wed Mar 19, 2008 2:01 am

I am attempting to run the USBSend and USBRecieve samples included with leJOS.

I have Eclipse configured with all necessary .jar files and have copied in the sample code. I have got eclipse configured already to be able to compile and push code to the NXT so I'm fairly confident libusb is installed correctly.

However, when executing USBSend.java on my PC with USBRecieve waiting on the NXT I am getting the error
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jlibnxt in java.library.path


I have searched the boards but have not found anything that has helped in any significant way.

Any assistance would be greatly appreciated.

Edit:
I have run the following:

Code: Select all
System.out.println(System.getProperty("java.library.path"));

Which outputs the URL to where it thinks is the classPath and I have pasted the jlibnxt.dll file into the folder, but am still getting the same error

Edit:
Solution found.
When adding RXTX as outlined in the Book Maximum NXT I had set the Native Classpath variable in Eclipse. By removing the link to this Jar file (It wasn't needed) I was able to view the jlibnxt.dll file in my leJOS folder.
hig
New User
 
Posts: 4
Joined: Wed Mar 19, 2008 1:57 am

Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff