NXTCommFactory cant find Fantom Driver

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

Moderators: 99jonathan, roger, imaqine

NXTCommFactory cant find Fantom Driver

Postby Rubikscuber202 » Tue Oct 22, 2013 8:08 pm

I am using 32 bit java with 32bit eclipse and the eclipse plugin.
I also have a 64 bit version of java and an 64 bit version of eclipse installed. But for lejos I use the 32 bit versions.
When i want to create a NXTComm Object i get this error message:

lejos.pc.comm.NXTCommException: Cannot load NXTComm driver
at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:110)
at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:91)
at Commcreate.main(Commcreate.java:12)
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
at lejos.internal.jni.JNILoader.loadLibrary(JNILoader.java:127)
at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:96)
at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:103)
at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:103)
... 2 more
Rubikscuber202
New User
 
Posts: 9
Joined: Mon Oct 21, 2013 3:03 pm

Re: NXTCommFactory cant find Fantom Driver

Postby skoehler » Wed Oct 23, 2013 10:07 am

You must use Java 32 bit. 64Bit is not yet supported.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXTCommFactory cant find Fantom Driver

Postby Rubikscuber202 » Wed Oct 23, 2013 11:20 am

As i said i use 32 bit java but i also have 64 bit jave installed
Rubikscuber202
New User
 
Posts: 9
Joined: Mon Oct 21, 2013 3:03 pm

Re: NXTCommFactory cant find Fantom Driver

Postby skoehler » Wed Oct 23, 2013 12:09 pm

Rubikscuber202 wrote:As i said i use 32 bit java but i also have 64 bit jave installed

Well, but the JNIException indicates, that you still use Java 64bit. Most likely, the LEJOS_NXT_JAVA_HOME variable isn't set correctly.
Did you install by hand? Actually, the installer would have taken care of setting everything correctly.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXTCommFactory cant find Fantom Driver

Postby Rubikscuber202 » Wed Oct 23, 2013 8:28 pm

Ok i looked at the Variables the LEJOS_NXT_JAVA_HOME refers to the 32 bit version of java and the NXJ_HOME variable also is right the only thing is that the PATH variable is missing in my case.

No i did not install manuelly. I think it is just that it messes up the path for the Driver because it also finds a 64 bit java, although its using 32 bit java. Is there maybe a way to change the path manually.
Rubikscuber202
New User
 
Posts: 9
Joined: Mon Oct 21, 2013 3:03 pm

Re: NXTCommFactory cant find Fantom Driver

Postby skoehler » Wed Oct 23, 2013 8:32 pm

Oh wait, silly me, you're running your program from Eclipse?
Which JDK/JRE does Eclipse launch your program with? I bet, it's the 64bit version.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm

Re: NXTCommFactory cant find Fantom Driver

Postby Rubikscuber202 » Wed Oct 23, 2013 9:13 pm

Maybe a strange question but how do i find out, which one iam using
Rubikscuber202
New User
 
Posts: 9
Joined: Mon Oct 21, 2013 3:03 pm

Re: NXTCommFactory cant find Fantom Driver

Postby skoehler » Wed Oct 23, 2013 10:03 pm

Rubikscuber202 wrote:Maybe a strange question but how do i find out, which one iam using

Just go to the preferences, and under Java->Installed JREs simply remove all 64bit JDKs and add the 32Bit JDK.
skoehler
leJOS Team Member
 
Posts: 1350
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

more stuff