Newb help

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

Moderators: roger, 99jonathan, imaqine

Newb help

Postby AngelOnFira » Sun Mar 25, 2012 7:01 pm

hello, i'm new to this, and run windows 7. I'm using eclipse to script, but when i go to test and upload, i get some errors. any help

Errors;
"Linking ...
Program has been linked successfully
Uploading ...
leJOS NXJ> Error: Failed to load USB comms driver.
leJOS NXJ> Caused by lejos.pc.comm.NXTCommException: Cannot load NXTComm driver
leJOS NXJ> at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:110)
leJOS NXJ> Caused by lejos.internal.jni.JNIException: library jfantom.dll was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native, architecture windows/x86_64
leJOS NXJ> at lejos.internal.jni.JNILoader.loadLibrary(JNILoader.java:127)
leJOS NXJ> Searching for any NXT using Bluetooth inquiry
Native Library intelbth_x64 not available
Native Library bluecove_x64 not available
leJOS NXJ> Error: Search failed.
leJOS NXJ> Caused by lejos.pc.comm.NXTCommException: Bluetooth stack not detected
leJOS NXJ> at lejos.pc.comm.NXTCommBluecove.search(NXTCommBluecove.java:54)
leJOS NXJ> Caused by javax.bluetooth.BluetoothStateException: BlueCove libraries not available
leJOS NXJ> at com.intel.bluetooth.BlueCoveImpl.createDetectorOnWindows(BlueCoveImpl.java:896)
leJOS NXJ> Failed to find any NXTs
leJOS NXJ> Failed to connect to any NXT
No NXT found - is it switched on and plugged in (for USB)?
uploading the program failed with exit status 1"


I have the NXT pluged in, and turned on. Any help???
AngelOnFira
New User
 
Posts: 4
Joined: Sun Mar 25, 2012 6:56 pm

Re: Newb help

Postby skoehler » Sun Mar 25, 2012 8:12 pm

Use 32 Bit Eclipse instead of 64 Bit Eclipse.
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm

Re: Newb help

Postby foliot » Sun Mar 25, 2012 8:13 pm

You most likely don't have the usb driver installed. Get it here: http://mindstorms.lego.com/en-us/support/files/Driver.aspx. Also ensure that your brick is connected and on. Btw, I'll point out that I use 64 bit eclipse and it works perfectly.
Last edited by foliot on Sun Mar 25, 2012 8:16 pm, edited 1 time in total.
foliot
New User
 
Posts: 17
Joined: Fri Mar 16, 2012 10:21 pm

Re: Newb help

Postby skoehler » Sun Mar 25, 2012 8:15 pm

foliot wrote:You most likely don't have the usb driver installed. Get it here: http://mindstorms.lego.com/en-us/support/files/Driver.aspx. Also ensure that your brick is connected and on.

That may be the case, and might turn out to be a problem later. However, right now, if you closely look at the exception he posted, you will spot the "windows/x86_64" which indicates that he's using 64Bit Java which is currently not supported on Windows.
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm

Re: Newb help

Postby gloomyandy » Sun Mar 25, 2012 8:19 pm

It looks like you have the 64bit version of Java and/or Eclipse, for leJOS you must use the 32 bit version because the Lego Fantom library (which is used to communicate by USB), is only available as a 32bit interface...

The tutorial has some notes on this see:
http://lejos.sourceforge.net/nxt/nxj/tu ... clipse.htm
and
http://lejos.sourceforge.net/nxt/nxj/tu ... indows.htm
There are also a number of threads on the forum that may help you resolve this problem...
Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3003
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Newb help

Postby foliot » Sun Mar 25, 2012 8:19 pm

skoehler wrote:
foliot wrote:You most likely don't have the usb driver installed. Get it here: http://mindstorms.lego.com/en-us/support/files/Driver.aspx. Also ensure that your brick is connected and on.

That may be the case, and might turn out to be a problem later. However, right now, if you closely look at the exception he posted, you will spot the "windows/x86_64" which indicates that he's using 64Bit Java which is currently not supported on Windows.


I get it. The mindstorm drivers are 32 bit.
foliot
New User
 
Posts: 17
Joined: Fri Mar 16, 2012 10:21 pm

Re: Newb help

Postby AngelOnFira » Sun Mar 25, 2012 10:47 pm

Thank you so much, all!!!
Not very experienced with this, so i didnt know what to search.
THANKS!!!
AngelOnFira
New User
 
Posts: 4
Joined: Sun Mar 25, 2012 6:56 pm

Re: Newb help

Postby AngelOnFira » Mon Mar 26, 2012 7:26 pm

sry, one more thing, i have windows 64 bit, and tried getting eclipse for 32 bit, but couldent extract it.
could someone whos done it with 64 bit tell me how to get it
Thank you for youre time!!!
AngelOnFira
New User
 
Posts: 4
Joined: Sun Mar 25, 2012 6:56 pm

Re: Newb help

Postby skoehler » Mon Mar 26, 2012 7:30 pm

skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm

Re: Newb help

Postby AngelOnFira » Mon Mar 26, 2012 7:46 pm

Ya, but i cant extract it.
it gives me 1500 errors
AngelOnFira
New User
 
Posts: 4
Joined: Sun Mar 25, 2012 6:56 pm

Re: Newb help

Postby gloomyandy » Mon Mar 26, 2012 8:50 pm

Extracts fine for me on Windows 7 64bit using the built in zip file handling... Perhaps try re-downloading?

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3003
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Newb help

Postby skoehler » Mon Mar 26, 2012 8:59 pm

AngelOnFira wrote:Ya, but i cant extract it.
it gives me 1500 errors

Are you extracting it to a folder without write permission?
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 3 guests

more stuff