I'd like to add here what really is happening behind the JVM. Native
libraries must go to the one of the "java.library.path" folders,
usually you don't give it in a command line. Default value is jre/bin,
jre/lib, OS system folders and current working directory.

This is what I do, I do not want to "pollute" OS system folders or
even jre/bin folder folders. I give an explicit path argument. I
prefer using RXTX com library even on Windows, this is against few
recommendations but my experience still says it works better. I have
had few Windows machines never got Sun COMM lib work properly, but
RXTX run from the beginning.

This example script runs an example application from the smsLib source
trunk folder. You can taylor folder structure to suit your application
distribution. Make sure you give all .jars and .dll references
properly. See "-Djava.library.path" setting to tell JVM where should
native .dll libraries be loaded from.

Copy RXTXcomm.jar and rxtxSerial.dll files to "lib-dep" folder. I use
JDK logging implementation here, logging.properties is a standard Sun
logging file format.

[ dist/ReadMessages.bat ]
  set lib=../lib-dep/slf4j-api-1.5.6.jar;../lib-dep/slf4j-
jdk14-1.5.6.jar
  set lib=%lib%;../lib-dep/RXTXcomm.jar

  java -version
  java -cp %lib%;./classes  -Djava.library.path=../lib-dep  -
Djava.util.logging.config.file=../lib-dep/logging.properties
examples.modem.ReadMessages
  pause

On Apr 6, 9:30 am, Arsenio Monjane <[email protected]> wrote:
> >Hi, make sure win32com.dll is in the right place!
> thnks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to