rxtx

Stable alternative to RXTX

最后都变了- 提交于 2019-12-17 08:09:30
问题 After using RXTX for a number of different projects, I've come across many annoying discrepancies and issues that can only sensibly be put down to bugs in the library - deadlocks, race hazards, and monitor threads deep in the RXTX library being left open preventing the program from closing (even though all ports I was using have been closed!) Running the latest "unstable" version has helped a bit, but it's still far from where I'd call it reliable, and activity on the project seems rather low

How to access USB ports in java [closed]

时光毁灭记忆、已成空白 提交于 2019-12-17 07:25:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 months ago . I'm trying to write a java application that accesses the usb ports to read from and write to a device connected through usb. The problem I face is that I don't know what exactly to use in java to do such a thing. I searched online and found something called JUSB but all the posts seem fairly old. Currently I'm

Ubuntu RXTX does not recognize usb-serial device

房东的猫 提交于 2019-12-14 00:23:46
问题 I'm connecting a device with librxtx-java to Ubuntu. The code previously worked in 10.04, but in 12.04 it can't discover the usb-serial connected to the computer. java.util.Enumeration<CommPortIdentifier> portEnum = CommPortIdentifier.getPortIdentifiers(); while ( portEnum.hasMoreElements() ) { CommPortIdentifier portIdentifier = portEnum.nextElement(); System.out.println( portIdentifier.getName() + " - " + getPortTypeName(portIdentifier.getPortType()) ); } This section of the code never goes

Java RXTX and packaging

谁说胖子不能爱 提交于 2019-12-13 18:09:08
问题 I have a java program that built in netbeans that uses the RXTX from Here. So far it works very well in both windows and linux. My question: Is it possible to include the needed RXTX files in the JAR without installing them as per the instruction on the RXTX site. I would like to be able to just give the JAR to people on Linux or Windows with all included files and have it just work. Is that possible and what is the best way to do that? Thank you. 回答1: You don't need to install them per-se -

Mismatched RXTX Versions

∥☆過路亽.° 提交于 2019-12-13 13:23:46
问题 I found a code to communicate in Java via Serial Port to an Arduino and wanted to try and get it working in order to expand on it for a project idea, but I keep getting this error Stable Library ========================================= Native lib Version = RXTX-2.2-20081207 Cloudhopper Build rxtx.cloudhopper.net Java lib Version = RXTX-2.1-7 WARNING: RXTX Version mismatch Jar version = RXTX-2.1-7 native lib Version = RXTX-2.2-20081207 Cloudhopper Build rxtx.cloudhopper.net Could not find COM

Java Marine API - looking for NMEA data

只愿长相守 提交于 2019-12-12 11:50:37
问题 My ultimate goal is to receive lat and long GPS info from an Adafruit Ultimate GPS (NMEA 0183 standard) to my Java app. I am using the Java Marine API to do this. Current location will then be written to a DB along with timestamp. So far I have successfully (I think) configured RXTX to enable coms over the USB port. The Java Marine API comes with some example .java files. The example below should scan through all existing COM ports and seek NMEA data - but when I run it I just get the output

Java RXTX Library doesn't load native library

怎甘沉沦 提交于 2019-12-12 09:52:58
问题 Basically i wanted to write a simple communication tool for my Arduino using the RXTX Library for java and failed horribly when it came to loading the dynamic library. My system specs: OS: OS X Yosemite 10.10.3 Java: SDK 1.8.0_45 RXTX: 2.1-7r2 - modified version for intel mac running 64 bit java, which can be found here. IDE: NetBeans 8 I checked, that these files work by following the install instructions, which is simply copying these two files into the /Library/Java/Extensions directory.

NoSuchPortException using RXTX Java library on Windows?

烂漫一生 提交于 2019-12-11 11:55:59
问题 I have followed the instructions to setup rxtx on windows from http://www.jcontrol.org/download/readme_rxtx_en.html. What I did exactly was copy rxtxSerial.dll to "C:\Program Files\Java\jdk1.6.0_07\jre\bin" and copied RXTXcomm.jar to "C:\Program Files\Java\jdk1.6.0_07\jre\lib\ext" (my JAVA_HOME variable is set to C:\Program Files\Java\jdk1.6.0_07\jre) I also added RXTXcomm.jar to my eclipse project. But when I run it, it still says "NoSuchPortException" Devel Library =========================

Build issues RXTX library on Wildfly 10.0

北城余情 提交于 2019-12-11 11:07:11
问题 I have a simple java application using the RXTX library and it is working fine.No links errors and no builds errors. I made another web dynamic application (JAVA EE) using the same library but when i try to deployed it on a Wildfly 10.0 i have this error : java.lang.NoClassDefFoundError: gnu/io/CommPortIdentifier Which i know means that either the library is not found or loaded multiple times. Here is the library : and here is the hierarchy of my application : As you can see for the Eclipse

how to set rxtx with OSGi Equinox?

随声附和 提交于 2019-12-11 07:43:55
问题 I am looking for a solution to my problem. I am developing a bundle that has to read from the serial port by means of rxtx jar. When I launch the application, I get the following error java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source)