I'am currently trying to install leJOS on my Macbook with OSX 10.5.8.
To do so, I followed this tutorial: http://lejos.sourceforge.net/nxt/nxj/tu ... tedMac.htm
Everything works fine, until I get to the point where I should test the connection:
- Code: Select all
Test it by running nxjbrowse -u you should be able to see your NXT.
When running the command I get the following output:
- Code: Select all
[tobias@KlunzMB-2:lejos_nxj/bin]$ nxjbrowse -u
java.lang.ExceptionInInitializerError
at lejos.pc.comm.NXTConnector.search(NXTConnector.java:79)
at lejos.pc.tools.NXJBrowser.run(NXJBrowser.java:101)
at lejos.pc.tools.NXJBrowser.start(NXJBrowser.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
at lejos.pc.tools.ToolStarter$1.run(ToolStarter.java:15)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at lejos.pc.comm.NXTCommFactory.<clinit>(NXTCommFactory.java:37)
... 16 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:70)
at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:56)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:41)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:53)
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:102)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:124)
at java.net.URL.openStream(URL.java:1007)
at lejos.util.jni.OSInfo.loadProperties(OSInfo.java:41)
at lejos.util.jni.OSInfo.<init>(OSInfo.java:112)
at lejos.util.jni.OSInfo.<init>(OSInfo.java:101)
at lejos.pc.comm.NXTCommFactory.<clinit>(NXTCommFactory.java:34)
... 16 more
I am absolutely new to Java and leJOS, so I am a little lost right now.
The NXT is connected to the Mac and is found by the Lego Software, so the connection should work.
Is this more a Java then a leJOS problem maybe?
Some more info about my system:
- Code: Select all
[tobias@KlunzMB-2:lejos_nxj/bin]$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
Any help is greatly appreciated, thank you very much in advance
tobi
