Hello everyone..
I ve been facing a weird behaviour or rxtx library here...I am using osx 10.5.8 and java 1.5....the paradox that makes me worry here is that whenever i get a :
WARNING: RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2pre2
in netbeans and java 1.5 everything seems to be working just fine...(i only include RXTXcomm.jar and other libraries in the project's lib folder and additionally place librxtxSerial.jnilib in System/Library/Java/Extensions)....tho whenever i try to place the correct librxtxSerial.jnilib file in the same folder ,so as to get this:
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
i get this exception SEVERE:
Code:null java.lang.NullPointerException
at project.controller.Controller.openPort(Controller.java:131)
..and others..lol...but this exception mathes this line of code
Code: try {
sPort= (SerialPort)portId.open(port, 2000);
} catch (PortInUseException e) {}
and nothing seems to be working...
now when i try to set my project to java 6(cause of some nice features) and keep this:
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
i still get the exception and nothing works...
moreover the previous librxtxSerial.jnilib that was working
WARNING: RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2pre2
with java 5, gives a
Invalid memory access of location 0x12825a898 rip=0x12302e12f
Java Result: 139
when i change to java 6 and guess what crashes.
It is not working as java 6 in my mac is 64bit..correct??? So after research and much coffee i found a different librxtxSerial.jnilib with 64-bit Intel support for Java 6 on Mac OS X..but still no wonder.... So i ll have to stay with the libraries mismatch and Java 5 or does anyone has anything to say...
Thanks very much in advance!