Help sorting errors.

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

Moderators: 99jonathan, roger, imaqine

Help sorting errors.

Postby treeface99 » Thu Nov 24, 2011 10:30 am

Hi,

I have followed online tutorials on how to implement lejos using Eclipse. I'm close to getting lejos up and running but have some errors which I cannot fix.
I am just trying to run this simple code:

import lejos.nxt.*;

public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello World");
Button.waitForPress();
}
}

...But am getting the following errors.


program has been linked successfully
uploading ...
leJOS NXJ> Failed to load USB comms driver: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
leJOS NXJ> Searching for any NXT using Bluetooth inquiry
leJOS NXJ> Search Failed: BlueCove libraries not available
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


My NXT is turned on and connected. It looks like a driver error however I am pretty sure have installed the correct driver. Have I missed out a stage of the instillation process?

Any help would be greatly appreciated.

Many Thanks
treeface99
Novice
 
Posts: 30
Joined: Thu Nov 24, 2011 10:07 am

Re: Help sorting errors.

Postby skoehler » Thu Nov 24, 2011 11:05 am

Install a 32Bit JDK and use 32Bit Eclipse. You're using 64Bit Eclipse, it seems.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Re: Help sorting errors.

Postby treeface99 » Thu Nov 24, 2011 2:32 pm

Thanks for that. Finally got it to work.

The problem I have now is it successfully downloaded the program to the brick and displayed:

program has been linked successfully
uploading ...
leJOS NXJ> Connected to 0
leJOS NXJ> Upload successful in 939 milliseconds
program has been uploaded
program has been linked successfully

Then I made a simple change to the code, saved it then run it and it says:

program has been linked successfully
uploading ...
leJOS NXJ> Failed to open Unknown 0016530A850E
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 just successfully downloaded the program, make one change and then no nxt can be found!

Any ideas? Thanks very much for your help
treeface99
Novice
 
Posts: 30
Joined: Thu Nov 24, 2011 10:07 am

Re: Help sorting errors.

Postby treeface99 » Thu Nov 24, 2011 2:38 pm

if i close eclipse and re open it again, it sucessfully downloads, if i then immediatly click run again, it says no nxt brick connected!

AHHHH :x
treeface99
Novice
 
Posts: 30
Joined: Thu Nov 24, 2011 10:07 am

Re: Help sorting errors.

Postby skoehler » Thu Nov 24, 2011 2:42 pm

treeface99 wrote:if i close eclipse and re open it again, it sucessfully downloads, if i then immediatly click run again, it says no nxt brick connected!
AHHHH :x

It's a known bug. Install this version of the plug-in:
http://xen-sk1.us.to/ldt-tryout/

The next release of the plug-in will contain the fix as well.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Re: Help sorting errors.

Postby treeface99 » Fri Nov 25, 2011 9:14 am

ok thanks a lot, I will try that
treeface99
Novice
 
Posts: 30
Joined: Thu Nov 24, 2011 10:07 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff