Problem with RXTX in Windows


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Problem with RXTX in Windows

  1. #1
    Join Date
    Feb 2005
    Posts
    8

    Exclamation Problem with RXTX in Windows

    Hi,

    I'm trying Dan O'Sullivan's example program from http://stage.itp.nyu.edu/~dano/cgi/C...ff=1&id=Serial . I'm running Java 1.5 in Windows.

    I installed the RXTX windows files into the following: rxtxParallel.dll and rxtxSerial.dll into (jdk1.5 location)\jre\lib and the RXTXcomm.jar file into (jdk1.5 location)\jre\lib\ext .

    Unfortunately, I get the following error when I compile the code after changing to "import gnu.io.*;" :

    java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
    at physcompserialdemo.PhysCompSerialDemo.main(PhysCompSerialDemo.java:26)
    Java Result: 1

    I have no idea what this error means. Please if you have any ideas or know how to solve this problem, please let me know.

    Thanks,
    C29

  2. #2
    Join Date
    Feb 2005
    Posts
    8

    Talking

    Fixed.

    put rxtxparallel.dll and rxtxserial.dll into c:/program files/java/jdk1.5.0_02/jre/bin
    put rxtxcomm.jar into c:/program files/java/jdk1.5.0_02/jre/lib/ext

    Thanks anyways,
    N29

  3. #3
    Join Date
    Feb 2007
    Posts
    1
    Hi,
    i have a problem similar to your.
    I am developing an application, using javacomm, that uses a serial port to send sms though a gprs modem.
    The problem is that i can connect to the serial port, but i cant send AT Commands like ATA or ATDT+phonenumber, it doesnt work.

    Can you help me please?

    Thanks, Cristian

  4. #4
    Join Date
    Apr 2007
    Posts
    11
    Attach software www.cajoon.com to your Java environment (J2SE, J2EE) and get 'root-cause' for every exception automatically . . .

  5. #5
    Join Date
    May 2009
    Posts
    1

    UnsatisfiedLinkError

    Quote Originally Posted by newbie29 View Post
    Hi,

    I'm trying Dan O'Sullivan's example program from http://stage.itp.nyu.edu/~dano/cgi/C...ff=1&id=Serial . I'm running Java 1.5 in Windows.

    I installed the RXTX windows files into the following: rxtxParallel.dll and rxtxSerial.dll into (jdk1.5 location)\jre\lib and the RXTXcomm.jar file into (jdk1.5 location)\jre\lib\ext .

    Unfortunately, I get the following error when I compile the code after changing to "import gnu.io.*;" :

    java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
    at physcompserialdemo.PhysCompSerialDemo.main(PhysCompSerialDemo.java:26)
    Java Result: 1

    I have no idea what this error means. Please if you have any ideas or know how to solve this problem, please let me know.

    Thanks,
    C29
    If you are using NetBeans, you have too put your .dll libraries (rxtxParallel.dll, rxtxSerial.dll) into WINDOWS/system32 folder. Worked fine for me.

    Good luck.

  6. #6
    Join Date
    Dec 2009
    Posts
    1

    Port in use exception

    Hi,

    We are using RXTX to connect to the COM port but is getting the following error

    gnu.io.PortInUseException: TestApplication
    at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:339)
    at Simple.init(Simple.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


    Anyone can help?

  7. #7
    Join Date
    Dec 2011
    Posts
    1
    Did you get a solution?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center