leJOS NXJ Linking Error

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

Moderators: roger, imaqine, 99jonathan

ollie123
New User
Posts: 4
Joined: Sun Jan 20, 2008 9:31 am

leJOS NXJ Linking Error

Postby ollie123 » Sun Jan 20, 2008 9:35 am

Hi guys,

I have a problem. I made a program, and it compiled ok. But when i try running the

Code: Select all

nxj.bat
tool, it says

Code: Select all

leJOS NXJ> Linking...
an error occurred: Class Main.nxj (file Main/nxj.class) not found in CLASSPATH .;C:\lejos_nxj\lib\classes.jar


Any ideas on what I can do? Thanks.
Ollie123.

User avatar
kirkpthompson
leJOS Team Member
Posts: 304
Joined: Wed Dec 05, 2007 1:27 am
Location: New Mexico, USA

Postby kirkpthompson » Sun Jan 20, 2008 7:16 pm

Make sure your classpath is set as per the install intructions.

-K

lawrie
leJOS Team Member
Posts: 953
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Mon Jan 21, 2008 1:40 am

What parameters are you passing to nxj?

It looks line you are doing:

nxj Main.nxj

when you should be doing:

nxj Main

ollie123
New User
Posts: 4
Joined: Sun Jan 20, 2008 9:31 am

Postby ollie123 » Mon Jan 21, 2008 7:27 pm

Ok thanks, now the linking works, but now I have a different problem:

Code: Select all

leJOS NXJ> Uploading...
leJOS NXJ> C:\lejos_nxj\bin\jlibnxt.dll: Can't find dependent libraries
error BluetoothStack not detected
     com.intel.bluetooth.BlueCoveImpl.<init>(BlueCoveImpl.java:136)
an error occurred: Bluetooth stack not detected


I get this error when I am not even using bluetooth! Any ideas? Thanks
Ollie123 :D

lawrie
leJOS Team Member
Posts: 953
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Mon Jan 21, 2008 10:44 pm

It looks like you do not have libusb installed.

ollie123
New User
Posts: 4
Joined: Sun Jan 20, 2008 9:31 am

Postby ollie123 » Tue Jan 22, 2008 5:12 pm

lawrie wrote:It looks like you do not have libusb installed.

Ok, do you mean libusb-win32? And how do I install it? (Sorry for asking, I got this for christmas and I just want to know)

Thanks again, Ollie123

mdsmitty
Novice
Posts: 78
Joined: Tue Feb 27, 2007 3:07 am
Contact:

Postby mdsmitty » Wed Jan 23, 2008 1:16 am


jvance
New User
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am

Postby jvance » Thu Jan 24, 2008 2:24 am

One tip: before you install libusb make sure you unplug all external usb devices, and disable(temporarily) all internal usb devices. After libusb is installed, you can enable and plug in the devices again.


Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 2 guests