I am trying to make icommand work on my MacBook Pro. However, I am stuck. I did install rxtx, I created the directory for the spool files, and I set up the serial port over bluetooth. But when I run a sample, I get:
- Code: Select all
PacMook-Bro:~/Desktop/rxtx_icommand/icommand-0.5/samples ulli$ java -cp ../icommand.jar:. Melody
Looking for 'icommand.properties' in working dir: /Users/ulli/Desktop/rxtx_icommand/icommand-0.5/samples
NXTCOMM = /dev/tty.NXT
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
RXTX Warning: Removing stale lock file. /var/lock/LK.003.010.014
Error while connecting NXTCommand() constructor
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at icommand.nxtcomm.NXTComm.open(Unknown Source)
at icommand.nxtcomm.NXTCommand.<clinit>(Unknown Source)
at icommand.platform.nxt.FileSystem.upload(Unknown Source)
at Melody.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at icommand.nxtcomm.NXTComm.sendData(Unknown Source)
at icommand.nxtcomm.NXTCommand.openWrite(Unknown Source)
at icommand.platform.nxt.FileSystem.upload(Unknown Source)
at Melody.main(Unknown Source)
PacMook-Bro:~/Desktop/rxtx_icommand/icommand-0.5/samples ulli$
Additionally, a dialog opens with the following text:
A Bluetooth serial failure has occurred
Failed to open an RFCOMM serial channel.
Check if authentication needs to be enabled in your device
I can succesfully browse my NXT using NXTBrowser.
Can somebody who successfully used icommand on Mac OS X post step-by-step instructions or any other hints that might help me?
Thanks!
Ulli
