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 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.
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.