[Rxtx] RXTX OSX installer problems
Ronald van Raaphorst
rvraaphorst at gmail.com
Wed Nov 10 09:27:29 MST 2010
Hi all,
I'm getting desperate while trying to make an installer for an OSX 10.6 app that uses RXTX 2.2.
The installer works, when I run it on a fresh installed OSX Snow Leopard 10.6 machine,
the app runs and I can see some ports (/dev/tty.Bluetooth-PDA-Sync and /dev/cu.Bluetooth-PDA-Sync).
But I can't see the port where my hardware is attached.
On my development machine (10.6 too) everything works (I see an additional port when the hardware is attached).
I can't see the difference.
Here's what the installer does:
Install the app in /Applications
Install librxtxSerial.jnilib and librxtxSerial.so in /Library/Java/Extensions
Install RXTXcomm.jar in /Library/Java/Extensions
I've manually created a /var/lock directory.
When I fiddle with the name of the librxtxSerial.jnilib in /Library/Java/Extensions, I cannot select any port and the app crashes.
So I think this lib is found.
I've tried various versions of the lib, among others from http://blog.iharder.net/2009/08/18/rxtx-java-6-and-librxtxserial-jnilib-on-intel-mac-os-x/
and http://www.neophob.com/2010/07/serial-library-rxtx-v2-2pre3/
I've also tried to run the jvm in 32 bit mode by adding -d32 in the Jar Bundler as a JVM parameter.
I've used the mouse in the same usb port and it works fine.
I've included the jnilib and so and RXTXComm.jar files in the application contents itself.
I've run the runnable jar (extracted from the package-contents of the app) and run it with
java -jar -d32 myjar.jar
But that doesn't show the required port either.
Questions:
1) Do I need to add the path /Library/Java/Extensions to the classpath?
2) Did I miss something?
3) Does anybody have an installer that shows how to install a java app, that I can open with the OSX PackageMaker?
4) What can be wrong?
Best regards,
Ronald
More information about the Rxtx
mailing list