J2me with commapi
I have compiled J2ME cdc, and installed the commapi on linux with jcl.
the command line:
./cvm -Djava.class.path=../porttest:\../lib/ext&commapi.jar:\../ext/jcl.jar Test
gives an "java.lang.unsatisfiedlinkerror: no serial in java.library.path while loading gni.io.rxtxcommdriver"
WHY?
java.library.path=/lib/i386
file locations:
/bin/cvm
/lib/foundation.jar
/lib/cdc.jar
/lib/javax.comm.proporties
/lib/ext/commpi.jar
/lib/ext/jcl.jar
/lib/i386/libser*
/porttest/Test.class
[577 byte] By [
pclausen] at [2007-9-26 8:23:26]

[pclausen],
Firstly, the Java COMMAPI 2.0.x (latest version) now only supports the Windows and Solaris Intel Platform Edition. You are using the Linux OS which is not supported and hence that is the reason why you are getting the "java.lang.unsatisfiedlinkerror: no serial in java.library.path while loading gni.io.rxtxcommdriver" errors because the COMM api is platform specific.
Secondly, the Java COMMAPI 2.0.x now only supports the Java 2 Standard Edition development kit/environment and does not support the Java 2 Micro Edition environment so eventhough you can try compiling the CDC source and install the COMM apis on Solaris Intel Platform Edition or Windows, you will still get errors.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/
Wow, an actual Sun employee actually responding to a question about javax.comm!
When will they answer these, which have been asked for two years:
1. When will javax.comm FULLY support parallel ports under Windoze? e.g. when will ParallelBlackBox allow FULL two-way communications on ECP/EPP?
2. When will javax.comm correctly enumerate available serial/parallel ports under Windoze, as the IBM version currently does?
3. When will javax.comm fix the well-known "null-pointer exception" bug, so we won't have to write workarounds anymore?
Hi there,
I read this in Faq.html file which came with Comm API.
Check it, may be usefull for u.
Q: Is there a linux version of the Java communications API?
A: We do not provide a linux implementation. But Kevin Hester
has written Java communications API drivers for linux and uses our CommPort
driver loading scheme to load his own gnu.io.RXTXCommDriver class. He gave
us permission to disclose his web page:
http://www.interstice.com/kevinh/linuxcomm.html