Failed to load USB comms driver: Cannot load USB driver

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

Moderators: 99jonathan, roger, imaqine

Re: Failed to load USB comms driver: Cannot load USB driver

Postby skoehler » Thu Aug 02, 2012 4:42 pm

pcProfie wrote:can i use a 64bit of eclipse?

On Linux: yes, on Windows/OSX: no
skoehler
leJOS Team Member
 
Posts: 1448
Joined: Thu Oct 30, 2008 4:54 pm

Re: Failed to load USB comms driver: Cannot load USB driver

Postby pcProfie » Thu Aug 02, 2012 5:20 pm

ok thanks XD
pcProfie
New User
 
Posts: 23
Joined: Thu Aug 02, 2012 4:18 pm

Re: Failed to load USB comms driver: Cannot load USB driver

Postby jackhogan11 » Wed Aug 06, 2014 8:34 pm

When I try to download a program using leJOS 9.1 beta onto the NXT I keep getting this:
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: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll, architecture windows/x86_64
leJOS NXJ> at lejos.internal.jni.JNILoader.loadLibrary(JNILoader.java:121)
leJOS NXJ> Caused by java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
leJOS NXJ> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
Native Library intelbth_x64 not available
Native Library bluecove_x64 not available
leJOS NXJ> Error: Exception connecting to NXT.
leJOS NXJ> Caused by lejos.pc.comm.NXTCommException: Open of JH NXT 1 failed.
leJOS NXJ> at lejos.pc.comm.NXTCommBluecove.open(NXTCommBluecove.java:136)
leJOS NXJ> Caused by javax.bluetooth.BluetoothStateException: BlueCove libraries not available
leJOS NXJ> at com.intel.bluetooth.BlueCoveImpl.createDetectorOnWindows(BlueCoveImpl.java:896)
leJOS NXJ> Error: Exception connecting to NXT.
leJOS NXJ> Caused by lejos.pc.comm.NXTCommException: Open of JH NXT 1 failed.
leJOS NXJ> at lejos.pc.comm.NXTCommBluecove.open(NXTCommBluecove.java:136)
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 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 don't really know what's wrong, so if anyone knows what's going on please tell me.
jackhogan11
New User
 
Posts: 10
Joined: Thu Jun 12, 2014 12:50 am

Re: Failed to load USB comms driver: Cannot load USB driver

Postby skoehler » Wed Aug 06, 2014 9:11 pm

Use 32 Bit Java. 64 Bit Java is not yet supported. Mostly due to the fact, that Lego never released that a driver that would work with 64 Bit applications.
skoehler
leJOS Team Member
 
Posts: 1448
Joined: Thu Oct 30, 2008 4:54 pm

Re: Failed to load USB comms driver: Cannot load USB driver

Postby jackhogan11 » Thu Aug 07, 2014 1:35 am

I downloaded the 32-bit Java but I don't know what to do with it since I am running 64-bit, I also have EV3 leJOS and am going to get RCX leJOS so hopefully this won't affect them.
jackhogan11
New User
 
Posts: 10
Joined: Thu Jun 12, 2014 12:50 am

Re: Failed to load USB comms driver: Cannot load USB driver

Postby skoehler » Thu Aug 07, 2014 8:43 am

Well, install Java 32 Bit. Then reinstall leJOS NXJ. The installer asks you to select a JDK. Select the 32 Bit JDK.
If you're using Eclipse, then I'm afraid that you will also have to download and use 32Bit Eclipse. The reason is that, when you upload from within Eclipse, then the same JRE/JDK that Eclipse uses is used to run leJOS.

You can continue to use 64Bit Java and 64Bit Eclipse with leJOS EV3. I'm not sure whether leJOS RCX will work with 64Bit Java.
skoehler
leJOS Team Member
 
Posts: 1448
Joined: Thu Oct 30, 2008 4:54 pm

Re: Failed to load USB comms driver: Cannot load USB driver

Postby jackhogan11 » Thu Aug 07, 2014 12:10 pm

I just remembered that my mom changed the coding of the LEGO software which allowed it to work on my 64-bit computer. I don't know if that would change anything but I just wanted to let you know.
jackhogan11
New User
 
Posts: 10
Joined: Thu Jun 12, 2014 12:50 am

Re: Failed to load USB comms driver: Cannot load USB driver

Postby jackhogan11 » Tue Aug 12, 2014 4:55 pm

I am uninstalling the leJOS NXJ plugin since it can't be used in the 64-bit eclipse.
jackhogan11
New User
 
Posts: 10
Joined: Thu Jun 12, 2014 12:50 am

Re: Failed to load USB comms driver: Cannot load USB driver

Postby skoehler » Wed Aug 13, 2014 12:29 pm

jackhogan11 wrote:I am uninstalling the leJOS NXJ plugin since it can't be used in the 64-bit eclipse.

You can run Eclipse 32 Bit in parallel with Eclipse 64Bit if you want. In fact, in might be the case that you only need one Eclipse installation, and that could be 32 Bit. 64Bit Eclipse really does not have any substantial advantage at this point, although I also tend to install 64Bit versions if possible.
skoehler
leJOS Team Member
 
Posts: 1448
Joined: Thu Oct 30, 2008 4:54 pm

Previous

Return to NXJ Software

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], Yahoo [Bot] and 5 guests

more stuff