Currently with OSX Lion there seems to be a problem with Processing talking to Arduino, it turns out it’s a mismatch of RXTX libraries.
When running my Processing sketch the following error can occur:
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
1. Download the latest RXTX library from http://rxtx.qbang.org/
2. Find the files librxtxSerial.jnilib and RXTXcomm.jar in the unzipped folder structure: MACOSX_IDE/ForPackageMaker/Install/Java/Extensions
3. Copy the 2 files into the folder: Harddrive/Library/Java/Extensions
4. Close down Processing and right-click on the application in the “Applications”-folder and select “Show Package Contents”. Go to folder “Contents/Resources/Java/modes/java/libraries/serial/library”. Replace the old RXTXcomm.jar with the new file in this folder.
5. Replace the file librxtxSerial.jnilib with the new file in the “macosx” folder “Contents/Resources/Java/modes/java/libraries/serial/library/macosx”.
6. In order for this to work properly also follow these steps taken from here:
- Under Finder click on the “Go” Menu
- Select “Go to Folder…”
- Type “/var/”
- Finder will open var folder.
- Right click on folder named “lock” and select “Get info”
If your version of OSX doesn’t have a folder called “lock”, create one by running – sudo mkdir /var/lock/ in the Terminal. - Open drop arrow titled “Sharing & Permissions”
- I set all privileges to: “Read & Write”
- Close Info
- Go to the Var folder on the finder and open the “spool” folder
- Right click on folder named “uucp” and select “Get info”
- Open drop arrow titled “Sharing & Permissions”
- I set all privileges to: “Read & Write”
- Close Info
- DONE
7. Restart your computer and Processing. The output you should see is:
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Leave a Reply