Questions tagged [javax.comm]

javax.comm is the Java Communications API. This API allows Java to access serial and parallel ports, and perhipherals attached to serial and parallel ports, including smartcards, modems, and fax machines. This API predates the JCP, so it doesn't have a JSR.

For more information about the Java Communications API, visit Oracle's page.

{{stub}}

82 questions
23
votes
5 answers

How to get javax.comm API?

I'd recently downloaded a project on SMS sending, but when I tries to compile the code it gives error on line import javax.comm.*;. Can anybody tell me where to find javax.comm and where to place so that there will be no compilation error.
Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
20
votes
7 answers

Javax.comm API on 64-bit Windows

I am using the javax.comm API to help my program communicate with hardware over serial port. I am using the Windows 7 and NetBeans IDE 9. I used the common Java program to check the available ports on my PC. The program compiled and ran without…
Nathi
  • 201
  • 1
  • 2
  • 3
15
votes
2 answers

How to read and write data to COM/Serial ports in Android?

I have to read and write data to the COM ports of a device using Android. I am using javax.comm package for that, but when I installed the apk file, it is not displaying any ports of the device. Is there any permission which I need to add in the…
piks
  • 1,621
  • 8
  • 32
  • 59
13
votes
5 answers

How do I get Maven to download javax.comm dependency?

I need the javax.comm library when building my project on our Hudson build server with Maven. In my projects pom.xml file I have the dependency like this: javax.comm comm
Svante
  • 1,069
  • 3
  • 12
  • 28
7
votes
3 answers

serialport write and read on windows not working

I first tried to use javax.comm to connect to the serial port (COM4). It did not even open the serial port. Then I tried to use rxtx libraries (rxtx-2.2pre2) to connect. It connects and writes the data but does not read any data from the serial…
JohnH
  • 150
  • 1
  • 11
7
votes
3 answers

How to get list of available serial ports in my pc using Java?

I just run some codes to get a list of available ports n my cmputer and it returned me false when I have 3 com ports that are free. How do I solve this prob? My codes: public static void main(String[] args) { //SerialParameters params=new…
Manish Basdeo
  • 6,139
  • 22
  • 68
  • 102
6
votes
4 answers

CommPortIdentifier.getPortIdentifiers is empty

I am building a simple application that communicates through Serial Port using the Java Communication API javax.comm. Here is some code in my java main method I wrote: CommPortIdentifier cpi = null; Enumeration e =…
Saher Ahwal
  • 9,015
  • 32
  • 84
  • 152
4
votes
4 answers

Adding comm.jar into my jar

I add comm.jar library into my .jar and I get javax.comm.NoSuchPortException. Is this bug because I haven't add javax.comm.properties and win32com.dll into my jar? How can I add this file inside manifest?
Ballon
  • 6,882
  • 18
  • 49
  • 63
4
votes
2 answers

possibly lossy conversion from int to byte

I am trying to write hexadecimal data into my serial port using java, but now I cant convert the hexadecimal data into the byte array. Here is the code which shows the error message: static byte[] bytearray = {0x02, 0x08, 0x16, 0x0, 0x00, 0x33,…
raaj5671
  • 105
  • 4
  • 12
4
votes
1 answer

How to add a "driver" to javax.comm? Serial port programming in Java

I am trying to use a RS-232 serial port on my PC with javax.comm class. I am newby on that API, so first of all I go through the documentation and I find out that the first thing you should do is "list" all the ports from the class CommPortListener…
Pablo Herrero
  • 1,724
  • 5
  • 18
  • 23
3
votes
1 answer

Downloading Javax Communications API

Does anyone know where I can download the Java communications API? On the repo1.maven.org it says to download it from http://www.sun.com/download/products.xml?id=43208d3d but that redirects you to Oracle's new download site and then it's nowhere to…
DaafVader
  • 1,735
  • 1
  • 14
  • 14
3
votes
1 answer

Java - get COM port id

I'm writing a java program, and right now I have a setup-file which contains a COM port number. which has to be changed if the device changes COM port number. This is not very user friendly. Therefore I want to be able to get a list of COM port ID's…
Zeliax
  • 4,987
  • 10
  • 51
  • 79
3
votes
1 answer

Exported JAR file doesn't detect serial ports

What this code snippet is supposed to do: Detect all serial ports and print the names of the ports to the screen. The Problem: When run in eclipse, the program detects serial ports fine; however, after exporting a runnable jar and running the jar,…
Aify
  • 3,543
  • 3
  • 24
  • 43
3
votes
1 answer

Inconsistent Results from javax.print library

I have a section of code within a Web App, running in Tomcat 5.0, that makes a call to the javax.print.PrintServiceLookup method lookupPrintServices(null, null). Previously, this code returned an array of substantial size, listing all the printers…
Southpaw Hare
  • 1,535
  • 3
  • 24
  • 50
3
votes
2 answers

How to deploy Java Communications API

I've been developing a java application with the eclipse RCP which requires the Java Communications API. Now as the javax.comm has to be setup first (install javax.comm.properties, win32comm.dll and comm.jar) my question ist: How should I deploy my…
1
2 3 4 5 6