leJOS NXT USB Driver Problem?

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

Moderators: 99jonathan, roger, imaqine

leJOS NXT USB Driver Problem?

Postby FinnGlinkMovies » Tue Nov 26, 2013 4:49 pm

Hello.
Today i downloaded leJOS. I already:
-flashed leJOS on my NXT (it runs perfect)
-install leJOS on PC and in Eclipse

But when i now load up one of the sample projects (HelloWorld), i get the following error out of Eclipse:
Code: Select all
Linking ...
Program has been linked successfully
Uploading ...
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 believe that this is a Driver Problem. The NXT Brick is connected via USB to my PC (Windows 7, 64-Bit)
Because when i go to the Device Manager, the NXT is there, but with a Driver Problem (Windows Error Code 39).
How can i fix this?
FinnGlinkMovies
New User
 
Posts: 4
Joined: Tue Nov 26, 2013 4:43 pm

Re: leJOS NXT USB Driver Problem?

Postby skoehler » Tue Nov 26, 2013 4:56 pm

FinnGlinkMovies wrote:I believe that this is a Driver Problem. The NXT Brick is connected via USB to my PC (Windows 7, 64-Bit)
Because when i go to the Device Manager, the NXT is there, but with a Driver Problem (Windows Error Code 39).
How can i fix this?

I believe you're right. I have never experienced or seen any problem like this. Which version of the driver did you install?
The latest version v1.20 of the Fantom driver is available from the robotc homepage:
http://www.robotc.net/support/troublesh ... driver.php
skoehler
leJOS Team Member
 
Posts: 1431
Joined: Thu Oct 30, 2008 4:54 pm

Re: leJOS NXT USB Driver Problem?

Postby FinnGlinkMovies » Tue Nov 26, 2013 5:08 pm

At first i installed the driver that came on the mindstorms cd. Now i installed the new one from the link, but its still the same.
Eclipse says, that the "jfantom.dll" isnt in "C:\Program Files (x86)\leJOS NXJ\lib\pc\native, architecture windows/x86_64".
That must be "C:\Program Files (x86)\leJOS NXJ\lib\pc\native\x86", because there is no other folder. But the file actually IS in there.
Nothing changed :/
FinnGlinkMovies
New User
 
Posts: 4
Joined: Tue Nov 26, 2013 4:43 pm

Re: leJOS NXT USB Driver Problem?

Postby skoehler » Tue Nov 26, 2013 5:23 pm

FinnGlinkMovies wrote:At first i installed the driver that came on the mindstorms cd. Now i installed the new one from the link, but its still the same.
The Driver problem in the Device Manager did not go away?
FinnGlinkMovies wrote:Eclipse says, that the "jfantom.dll" isnt in "C:\Program Files (x86)\leJOS NXJ\lib\pc\native, architecture windows/x86_64".
Sorry, but you didn't mention that before. Look what our tutorial says:
Make sure you download a package for your operating system. Note, however that for Windows, even if you are on a 64-bit system, you need a 32-bit version of Eclipse, for leJOS NXJ.

Quote from http://www.lejos.org/nxt/nxj/tutorial/P ... clipse.htm
skoehler
leJOS Team Member
 
Posts: 1431
Joined: Thu Oct 30, 2008 4:54 pm

Re: leJOS NXT USB Driver Problem?

Postby FinnGlinkMovies » Tue Nov 26, 2013 5:59 pm

Ok, cool. Now it works. Thanks :)
But here are the next Problems:
I created a new Project by my own.
Heres the code:
Code: Select all
package com.fgm;

import lejos.nxt.TouchSensor;

public class Try1 {
TouchSensor touch = new TouchSensor(SensorPort.S1)
if(touch.isPressed())
   System.out.printIn("Sensor");
}


Following Errors occur:
-SensorPort cannot be resolved to a variable (line 6)
-Syntax error on token "if", [ expected (line 7)
-Syntax error on token "System", ] expected (line 8)

And if i right-click on the .java file, i cant run it as a NXJ-Project
If i try to run the whole Project Folder, it says "Selection does not contain a main type"

Can you tell by that, what i did wrong? BTW, the code is from a tutorial .pdf file i found.
FinnGlinkMovies
New User
 
Posts: 4
Joined: Tue Nov 26, 2013 4:43 pm

Re: leJOS NXT USB Driver Problem?

Postby skoehler » Tue Nov 26, 2013 6:07 pm

Your code is not valid Java code. You have a class, but no method. You didn't import SensorPort. You should read a Java book, or maybe watch some Eclipse tutorial which will also tell your to easily import classes like SensorPort.
I bet, your screen is full with red error markers at the moment telling your that the code doesn't compile.
skoehler
leJOS Team Member
 
Posts: 1431
Joined: Thu Oct 30, 2008 4:54 pm

Re: leJOS NXT USB Driver Problem?

Postby FinnGlinkMovies » Tue Nov 26, 2013 8:51 pm

There are three markers, at the lines i told before.
FinnGlinkMovies
New User
 
Posts: 4
Joined: Tue Nov 26, 2013 4:43 pm

Re: leJOS NXT USB Driver Problem?

Postby gloomyandy » Tue Nov 26, 2013 9:39 pm

Well you need to make those markers go away before you can run the program. If you don't know how to fix those problems then you need to spend some time understanding Java, there are lots of tutorials available on the web. Oh and you probably need to find a new leJOS tutorial. Try this one...
http://www.lejos.org/nxt/nxj/tutorial/index.htm
In particular take a look at the following section:
http://www.lejos.org/nxt/nxj/tutorial/P ... clipse.htm
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4119
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

leJOS NXT USB Driver Problem

Postby Goreva » Fri Dec 13, 2013 5:17 am

Hi implicit,

my problems I do have since I have PPCs. At earlier models I had to install AS every 6-8 month. With AS 4.x the problems are little less, but still there. I had them with my Tytn I and now the same with the G900.
They may be caused by some other software, but I have nothing too special. And I need a good sync
современная-урология.рф болезни почек лечение
Goreva
New User
 
Posts: 2
Joined: Wed Nov 27, 2013 11:11 am
Location: Россия


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests

more stuff