Anybody got it to run on windows 7????

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

Moderators: 99jonathan, roger, imaqine

Anybody got it to run on windows 7????

Postby doyajii1 » Fri Nov 12, 2010 9:32 am

Hello, windows 7 and lejos users...(I'm using windows 7, x64)

I was able to install lejos, and refresh the NXT firmware with lejos.
In the first trial, I was getting ticking noise and not able to reset the NXT
with taking out batteries or by pushing the reset button.

so, I had to use the CD software came with NXT to refresh
the NXT back to factory setting. I had this problem in windows 7 32 bit too
and on the windows 7 32 bit one, I couldn't even put it back to factory
setting by using CD software, so I had to find other computer that didn't
have lejos/windows 7 to re-upload the NXT firmware.

However, on the second trial, it went through without any problem.
(was happy and this was win 7, x64)
After re-installing lejos and lejos firmware on the NXT head,
I wanted to just test simple helloworld program.
So, now I tried to use cmd to compile the java code, and upload
to NXT. I saw its not finding NXT. I tried both usb and bluetooth.

leJOS NXJ> Failed to load USB comms driver: Cannot load USB driver
leJOS NXJ> Searching for any NXT using Bluetooth inquiry
Native Library intelbth_x64 not available
Native Library bluecove_x64 not available

Now, I'm asking...again, did anybody got it to run the
nxj command to upload the program and run the program
in windows 7 64 bit?

and if so, what can I do to solve this problem.
(P.S. it didn't see as gps camera or something, in case someone asking)
doyajii1
New User
 
Posts: 8
Joined: Mon Jun 14, 2010 8:03 pm

Re: Anybody got it to run on windows 7????

Postby skoehler » Fri Nov 12, 2010 10:10 am

doyajii1 wrote:Now, I'm asking...again, did anybody got it to run the
nxj command to upload the program and run the program
in windows 7 64 bit?


The Lego drivers don't support 64 bit software and Bluecove (or bluetooth driver) doesn't support 64Bit either. So both USB and Bluetooth are unusable if you use a 64Bit JRE/JDK. Please install a 32Bit JDK. LeJOS should run just fine using the 32Bit JDK, but you may have to adjust the batch scripts to actually use java.exe from the 32Bit JDK.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Postby gloomyandy » Fri Nov 12, 2010 11:01 am

As Sven says make sure you have the 32bit JDK and then things work fine on Windows 7 64bit, that's the setup I have on my dev machine...

Oh and make sure you have the latest Fantom drivers from the Lego mindstorms site...

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

keep trying...

Postby doyajii1 » Sat Nov 13, 2010 12:36 am

Hello,

thank you for the support and suggestions.
However, I'm still having same problem.
This is things that I tried today.

1) Make sure to have 32 bit java jdk.

This is my system var. here...

JAVA_HOME
C:\Program Files\Java\jdk1.6.0_22
JRE_HOME
C:\Program Files\Java\jdk1.6.0_22\jre

I took out all the 64bit java var., just in case
64bit and 32bit java home interferes

2)re-install lejos in the 32 bit program files folder.
(it was automatically selecting x64 program files folder
as default setting by using "leJOS_NXJ_0.8.5-Setup.exe")

This is my system var. here...

NXJ_HOME
C:\Program Files\leJOS NXJ

3) make sure have latest fantom drivers.
I have downloaded from lego site and installed it
the site url:
http://mindstorms.lego.com/en-gb/suppor ... river.aspx

same as before when I looked at device manager, it sees nxt as
lego device.

Now I tried "nxj hello" in cmd tried both setting as system admin
or reg. user and still got this error message...
(I ran nxjc hello.java before the command, and it worked correctly)

Code: Select all
leJOS NXJ> Linking...
leJOS NXJ> Uploading...
leJOS NXJ> Failed to load USB comms driver: Cannot load USB driver
leJOS NXJ> Searching for any NXT using Bluetooth inquiry
Native Library intelbth_x64 not available
Native Library bluecove_x64 not available
leJOS NXJ> Search Failed: BlueCove libraries not available
leJOS NXJ> Failed to find any NXTs
leJOS NXJ> Failed to connect to any NXT
an error occurred: No NXT found - is it switched on and plugged in (for USB)?


Is there something else I can try??
Also, for the nxj.bat file editing, shouldn't it be fine as long as I have
correct JAVA_HOME and NXJ_HOME?

I still thank you for all of your helps and suggestions.
If this end up not working,
I will get few other x32 bit vista computers I have to do this.
doyajii1
New User
 
Posts: 8
Joined: Mon Jun 14, 2010 8:03 pm

Postby gloomyandy » Sat Nov 13, 2010 12:38 pm

Looks to me like you are still using a 64 bit version of Java... You need to fix this for leJOS to work...

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

Thanks!

Postby doyajii1 » Sat Nov 13, 2010 9:31 pm

Hello,

Yes! its fixed. Thanks!

So, I just decided to uninstall everything that is related to
JAVA or lejos and reinstall it just using 32 bit java sdk and lejos.
After re-installation, I used nxj command again and it worked just fine.

Code: Select all
leJOS NXJ> Linking...
leJOS NXJ> Uploading...
Found NXT: NXT 00165307444C
leJOS NXJ> Connected to NXT
leJOS NXJ> Upload successful in 340 milliseconds


now I can stay with windows 7 64 bit computers for lejos! :D
doyajii1
New User
 
Posts: 8
Joined: Mon Jun 14, 2010 8:03 pm

Postby gloomyandy » Sat Nov 13, 2010 10:11 pm

Hi,
that's great to hear, glad you got it working! Could you provide the details of how/where you got the 32bit JDK from so that anyone else with the same problem can see where to get it from...

Thanks

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

install lejos in windows 7 64 bit

Postby doyajii1 » Sun Nov 14, 2010 1:17 am

Hello,

Sure, I can provide those steps.
Before start, I have uninstall all the jres and java sdks(64bit/32bit) to
have clean installation.

1 ) go to this link:
http://www.oracle.com/technetwork/java/ ... index.html

and there is 4 big icons like, Java, JavaFx, Netbeans, JavaEE
under the Java, click "JDK".

On the Platform, select windows.
!!!make sure you don't click windows x64 or anything else!!!
and click continue. (you don't have to sign up for Oracle to download)

2 ) On the next page, by clicking
"jdk-6uXX-windows-i586.exe", the download will be started.

3 ) Once download is finshed, install the Java SDK with default setting*.

4 ) After the installation, make sure go to your Environment Variables
and check the setting.
If it's not done by installer, set the JAVA_HOME,
and set the path to your java jdk bin.
(I believe most java users know this by now.)

5 ) make sure java and javac command works in cmd.

6 ) Install the mindstorm CD software came with NXT, and that will install
the driver for your NXT.(I ran the mindstorm software to make sure it's
installed correctly...) Some people say to download the most updated
driver from the lego website, but mine seems the CD software(driver
included) that came with NXT did just fine. However, if you don't have the
CD please, go to the link below to get the most updated driver.
http://mindstorms.lego.com/en-us/suppor ... spx#Driver

7 ) Now install the lejos. I downloaded Lejos_nxj_0.8.5-Setup.exe from the link....
http://sourceforge.net/projects/lejos/files/
and installed it with default setting*.
During the NXT lejos firmware installing,
even though you tried reset/taking out battery,
if you keep hearing ticking noise, please use the
CD software(Mindstorm, If I'm right) to go back to factory setting,
and try to reinstall the lejos and refresh the NXT head with lejos.
I had to try two times, and in the second trial,
I have mine refreshed as expected.
ALSO, if your computer doesn't see the NXT using mindstorm software
on the same computer that have lejos, find other computer that
don't have lejos to refresh and put it back to factory setting.
(To upload the mindstrom firmware
in the mindstorm program...do the following steps..
tools>update NXT firmware>Download)

8 ) test nxjc nxj command and if you don't see error good to go!

*default setting installation : by clicking Next> multiple times
during installation without changing anything.

Thank you for suggestions Andy.
-Ho-Kyeong-
doyajii1
New User
 
Posts: 8
Joined: Mon Jun 14, 2010 8:03 pm

no way to use 64bit eclipse with your solution

Postby ljh131 » Fri Nov 19, 2010 1:37 pm

there's another problem.

if you have both 32bit/64bit java, there's no way forcing windows to use 32bit java.

when eclipse run with 64bit java (by default), lejos eclipse plugin also use 64bit java instead of 32bit. so we get errors - 'Failed to load USB comms driver: Cannot load USB driver'

of course, we can manually run nxjupload.bat to upload nxj file through 32bit cmd(syswow64), but it makes me hard.
ljh131
New User
 
Posts: 5
Joined: Sun May 30, 2010 8:47 am
Location: Seoul, South Korea

Postby gloomyandy » Fri Nov 19, 2010 1:53 pm

Is there a reason why you can't run Eclipse using 32bit Java?

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

Postby ljh131 » Sat Nov 20, 2010 1:13 am

no reason to can't run in 32bit, but i already have 64bit eclipse with lots of plugin...
and i just want to use this, instead of installing new 32bit one.

anyway, i should install 32bit eclipse if there's really no way to use 64bit eclipse.
ljh131
New User
 
Posts: 5
Joined: Sun May 30, 2010 8:47 am
Location: Seoul, South Korea

Postby theshao » Sun Dec 05, 2010 3:02 am

just a quick note for anyone struggling with this - the path variables:

JAVA_HOME
C:\Program Files\Java\jdk1.6.0_22
JRE_HOME
C:\Program Files\Java\jdk1.6.0_22\jre

are for the 64-bit versions, the 32-bit versions should be here:

JAVA_HOME
C:\Program Files (x86)\Java\jdk1.6.0_22
JRE_HOME
C:\Program Files (x86)\Java\jdk1.6.0_22\jre

Obviosly the relevant version of the runtime and sdk need to be present in those folders, but depending on java install order the path variables might need settings manually.
It's possible to have both 32 and 64-bit versions of both the dk and the runtime installed, but eclipse and lejos need to be using the 32-bit for lejos to work. There's also a way to run 32 and 64 bit versions of eclipse side by side, by specifying a java path in the eclipse ini described here:
http://wiki.eclipse.org/FAQ_How_do_I_ru ... clipse.ini
theshao
New User
 
Posts: 4
Joined: Sat Aug 07, 2010 10:21 am

Postby mark85x » Sun Jan 09, 2011 2:14 pm

When you don't want to change your Java and eclipse installation, you can use VMWare Player or VirtualBox to install a virtual machine with a x86 version of Windows.
mark85x
New User
 
Posts: 4
Joined: Sun Jan 09, 2011 11:58 am

Re: Anybody got it to run on windows 7????

Postby dvine1 » Sat Mar 19, 2011 11:36 pm

Hi,

I am trying to install lejos on my 64 bit computer. I made sure I installed only 32bit eclipse and 32 bit java onto my system. The thing I am not sure about are the settings. I've read through the forums, looked online and searched to avoid posting this but I am not able to resolve this problem. The previous post in this thread states to make sure the path variables are set to java and jre.. so am I adding it to the path variables?

is my path variable at the moment:
C:\Program Files (x86)\leJOS NXJ\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\VXIPNP\WinNT\Bin;%LEJOS_HOME%\bin

This is my current user variable:
NXJ_HOME
C:\Program Files (x86)\leJOS NXJ


Do these variables go into my path or do I add them?
JAVA_HOME
C:\Program Files (x86)\Java\jdk1.6.0_22
JRE_HOME
C:\Program Files (x86)\Java\jdk1.6.0_22\jre

My apologies for being a noobie, I was able to install lejos and eclipse on my old 32 bit system with no problems, I can't seem to find the answer to this issue and I consider myself resourceful.. or at least I try to be.

Thanks
dvine1
New User
 
Posts: 3
Joined: Sat Mar 19, 2011 10:54 pm

Re: Anybody got it to run on windows 7????

Postby gloomyandy » Sun Mar 20, 2011 7:46 am

So what isn't working for you at te moment? Can you use the leJOS command line tools? Can you compile with eclipse? What problem do you have?
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3642
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Next

Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff