Java Serial Communication

Java Serial Communication

Does Netbeans support serial port communication for windows???

because netbeans doesnt support javax.comm package .
I tried my program with notepad for rxtx. It worked properly &
same with netbeans gives exceptions while opening port.

Does any one have any idea? pls help.thanks in advance.

Its giving Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: gnu.io.LPRPort cannot be cast to gnu.io.SerialPort
at code
serialPort = (SerialPort) portId.open("JavaApplication5", 2000);
View Answers

February 20, 2010 at 3:57 PM

Hi Friend,

Which version are you using?

Thanks

February 20, 2010 at 4:19 PM

I have checked it on both netbeans 5.5 and 6.8.

February 20, 2010 at 4:28 PM

if u have program for this. can u send me for reference?









Related Tutorials/Questions & Answers:
Java Serial Communication - IDE Questions
Java Serial Communication  Does Netbeans support serial port communication for windows??? because netbeans doesnt support javax.comm package . I tried my program with notepad for rxtx. It worked properly & same with netbeans
serial port communication using bluetooth in j2me
serial port communication using bluetooth in j2me   how to make serial port communication using bluetooth in j2me ? what r prerequisites
Advertisements
serial port communication using bluetooth in j2me
serial port communication using bluetooth in j2me   how to make serial port communication using bluetooth in j2me ? what r prerequisites
Interthread Communication in Java
Interthread Communication in Java As you know about producer-consumer problem... wasting of cycle or polling, interthread communication is a good way.  Given below some function helpful in interthread communication :ADS_TO_REPLACE_1
Wireless communication - Java Beginners
Wireless communication  I want to send and receive data(message/data) between 2 lappys which are connected in wireless lan. can u plz expalin how to start the JAVA source code
how to create month wise serial number in java?
how to create month wise serial number in java?  Ex: For 1)January-serial number is 1/001,1/002,1/003 etc
Version of com.buabook>java-kdb-communication dependency
List of Version of com.buabook>java-kdb-communication dependency
Maven Dependency java-kdb-communication >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.buabook >> java-kdb-communication version1.0.0 in your project
Maven Dependency java-kdb-communication >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.buabook >> java-kdb-communication version1.0.1 in your project
Maven Repository/Dependency: com.buabook | java-kdb-communication
Maven Repository/Dependency of Group ID com.buabook and Artifact ID java-kdb-communication. Latest version of com.buabook:java-kdb-communication dependencies. # Version Release Date
Maven dependency for com.buabook - java-kdb-communication version 1.0.1 is released. Learn to use java-kdb-communication version 1.0.1 in Maven based Java projects
-communication released The developers of   com.buabook - java-kdb..., the released version of  com.buabook - java-kdb-communication library is 1.0.1. Developer can use this version ( com.buabook - java-kdb-communication
Maven dependency for com.buabook - java-kdb-communication version 1.0.0 is released. Learn to use java-kdb-communication version 1.0.0 in Maven based Java projects
-communication released The developers of   com.buabook - java-kdb..., the released version of  com.buabook - java-kdb-communication library is 1.0.0. Developer can use this version ( com.buabook - java-kdb-communication
Communication Portal
Communication Portal       A communication interface desinged with Web 2.0 technology, mission is to help peolpe communicate easily over a comfortable web interface Read full
Maven dependency for ch.jodersky - akka-serial-core_2.11 version 4.0.0-RC1 is released. Learn to use akka-serial-core_2.11 version 4.0.0-RC1 in Maven based Java projects
-serial-core_2.11 released The developers of   ch.jodersky - akka-serial..., the released version of  ch.jodersky - akka-serial-core_2.11 library is 4.0.0-RC1. Developer can use this version ( ch.jodersky - akka-serial-core_2.11
Maven dependency for ch.jodersky - akka-serial-core_2.11 version 4.0.0 is released. Learn to use akka-serial-core_2.11 version 4.0.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.11 version 4.0.0 in Java projects... and includes  ch.jodersky - akka-serial-core_2.11 version 4.0.0 java library...Maven dependency for  ch.jodersky  - Version 4.0.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.11 version 4.1.0 is released. Learn to use akka-serial-core_2.11 version 4.1.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.11 version 4.1.0 in Java projects... and includes  ch.jodersky - akka-serial-core_2.11 version 4.1.0 java library...Maven dependency for  ch.jodersky  - Version 4.1.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.11 version 4.1.1 is released. Learn to use akka-serial-core_2.11 version 4.1.1 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.11 version 4.1.1 in Java projects... and includes  ch.jodersky - akka-serial-core_2.11 version 4.1.1 java library...Maven dependency for  ch.jodersky  - Version 4.1.1 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.11 version 4.1.2 is released. Learn to use akka-serial-core_2.11 version 4.1.2 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.11 version 4.1.2 in Java projects... and includes  ch.jodersky - akka-serial-core_2.11 version 4.1.2 java library...Maven dependency for  ch.jodersky  - Version 4.1.2 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.11 version 4.1.4 is released. Learn to use akka-serial-core_2.11 version 4.1.4 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.11 version 4.1.4 in Java projects... and includes  ch.jodersky - akka-serial-core_2.11 version 4.1.4 java library...Maven dependency for  ch.jodersky  - Version 4.1.4 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.0.0-RC1 is released. Learn to use akka-serial-core_2.12 version 4.0.0-RC1 in Maven based Java projects
-serial-core_2.12 released The developers of   ch.jodersky - akka-serial..., the released version of  ch.jodersky - akka-serial-core_2.12 library is 4.0.0-RC1. Developer can use this version ( ch.jodersky - akka-serial-core_2.12
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.0.0 is released. Learn to use akka-serial-core_2.12 version 4.0.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.12 version 4.0.0 in Java projects... and includes  ch.jodersky - akka-serial-core_2.12 version 4.0.0 java library...Maven dependency for  ch.jodersky  - Version 4.0.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.1.0 is released. Learn to use akka-serial-core_2.12 version 4.1.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.12 version 4.1.0 in Java projects... and includes  ch.jodersky - akka-serial-core_2.12 version 4.1.0 java library...Maven dependency for  ch.jodersky  - Version 4.1.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.1.1 is released. Learn to use akka-serial-core_2.12 version 4.1.1 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.12 version 4.1.1 in Java projects... and includes  ch.jodersky - akka-serial-core_2.12 version 4.1.1 java library...Maven dependency for  ch.jodersky  - Version 4.1.1 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.1.2 is released. Learn to use akka-serial-core_2.12 version 4.1.2 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.12 version 4.1.2 in Java projects... and includes  ch.jodersky - akka-serial-core_2.12 version 4.1.2 java library...Maven dependency for  ch.jodersky  - Version 4.1.2 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.1.4 is released. Learn to use akka-serial-core_2.12 version 4.1.4 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.12 version 4.1.4 in Java projects... and includes  ch.jodersky - akka-serial-core_2.12 version 4.1.4 java library...Maven dependency for  ch.jodersky  - Version 4.1.4 of akka-serial
Maven dependency for ch.jodersky - akka-serial-core_2.12 version 4.2.0 is released. Learn to use akka-serial-core_2.12 version 4.2.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-core_2.12 version 4.2.0 in Java projects... and includes  ch.jodersky - akka-serial-core_2.12 version 4.2.0 java library...Maven dependency for  ch.jodersky  - Version 4.2.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-native version 4.0.0-RC1 is released. Learn to use akka-serial-native version 4.0.0-RC1 in Maven based Java projects
to use  ch.jodersky - akka-serial-native version 4.0.0-RC1 in Java projects... and includes  ch.jodersky - akka-serial-native version 4.0.0-RC1 java library...-serial-native released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-native version 4.0.0 is released. Learn to use akka-serial-native version 4.0.0 in Maven based Java projects
; ch.jodersky - akka-serial-native version 4.0.0 in Java projects. Follow the step by step... - akka-serial-native version 4.0.0 java library in your project. ADS...Maven dependency for  ch.jodersky  - Version 4.0.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-native version 4.1.0 is released. Learn to use akka-serial-native version 4.1.0 in Maven based Java projects
; ch.jodersky - akka-serial-native version 4.1.0 in Java projects. Follow the step by step... - akka-serial-native version 4.1.0 java library in your project. ADS...Maven dependency for  ch.jodersky  - Version 4.1.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-native version 4.1.1 is released. Learn to use akka-serial-native version 4.1.1 in Maven based Java projects
; ch.jodersky - akka-serial-native version 4.1.1 in Java projects. Follow the step by step... - akka-serial-native version 4.1.1 java library in your project. ADS...Maven dependency for  ch.jodersky  - Version 4.1.1 of akka-serial
Maven dependency for ch.jodersky - akka-serial-native version 4.1.2 is released. Learn to use akka-serial-native version 4.1.2 in Maven based Java projects
; ch.jodersky - akka-serial-native version 4.1.2 in Java projects. Follow the step by step... - akka-serial-native version 4.1.2 java library in your project. ADS...Maven dependency for  ch.jodersky  - Version 4.1.2 of akka-serial
Maven dependency for ch.jodersky - akka-serial-native version 4.1.4 is released. Learn to use akka-serial-native version 4.1.4 in Maven based Java projects
; ch.jodersky - akka-serial-native version 4.1.4 in Java projects. Follow the step by step... - akka-serial-native version 4.1.4 java library in your project. ADS...Maven dependency for  ch.jodersky  - Version 4.1.4 of akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.11 version 4.0.0-RC1 is released. Learn to use akka-serial-stream_2.11 version 4.0.0-RC1 in Maven based Java projects
-serial-stream_2.11 version 4.0.0-RC1 java library in your project. ADS...-serial-stream_2.11 released The developers of   ch.jodersky - akka-serial... 2017, the released version of  ch.jodersky - akka-serial-stream_2.11
Maven dependency for ch.jodersky - akka-serial-stream_2.11 version 4.0.0 is released. Learn to use akka-serial-stream_2.11 version 4.0.0 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.11 version 4.0.0 in Java...Maven dependency for  ch.jodersky  - Version 4.0.0 of akka-serial-stream_2.11 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.11 version 4.1.0 is released. Learn to use akka-serial-stream_2.11 version 4.1.0 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.11 version 4.1.0 in Java...Maven dependency for  ch.jodersky  - Version 4.1.0 of akka-serial-stream_2.11 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.11 version 4.1.1 is released. Learn to use akka-serial-stream_2.11 version 4.1.1 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.11 version 4.1.1 in Java...Maven dependency for  ch.jodersky  - Version 4.1.1 of akka-serial-stream_2.11 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.11 version 4.1.2 is released. Learn to use akka-serial-stream_2.11 version 4.1.2 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.11 version 4.1.2 in Java...Maven dependency for  ch.jodersky  - Version 4.1.2 of akka-serial-stream_2.11 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.11 version 4.1.4 is released. Learn to use akka-serial-stream_2.11 version 4.1.4 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.11 version 4.1.4 in Java...Maven dependency for  ch.jodersky  - Version 4.1.4 of akka-serial-stream_2.11 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.12 version 4.0.0-RC1 is released. Learn to use akka-serial-stream_2.12 version 4.0.0-RC1 in Maven based Java projects
-serial-stream_2.12 version 4.0.0-RC1 java library in your project. ADS...-serial-stream_2.12 released The developers of   ch.jodersky - akka-serial... 2017, the released version of  ch.jodersky - akka-serial-stream_2.12
Maven dependency for ch.jodersky - akka-serial-stream_2.12 version 4.1.0 is released. Learn to use akka-serial-stream_2.12 version 4.1.0 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.12 version 4.1.0 in Java...Maven dependency for  ch.jodersky  - Version 4.1.0 of akka-serial-stream_2.12 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.12 version 4.1.1 is released. Learn to use akka-serial-stream_2.12 version 4.1.1 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.12 version 4.1.1 in Java...Maven dependency for  ch.jodersky  - Version 4.1.1 of akka-serial-stream_2.12 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.12 version 4.1.2 is released. Learn to use akka-serial-stream_2.12 version 4.1.2 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.12 version 4.1.2 in Java...Maven dependency for  ch.jodersky  - Version 4.1.2 of akka-serial-stream_2.12 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.12 version 4.1.4 is released. Learn to use akka-serial-stream_2.12 version 4.1.4 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.12 version 4.1.4 in Java...Maven dependency for  ch.jodersky  - Version 4.1.4 of akka-serial-stream_2.12 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-stream_2.12 version 4.2.0 is released. Learn to use akka-serial-stream_2.12 version 4.2.0 in Maven based Java projects
? Steps to use  ch.jodersky - akka-serial-stream_2.12 version 4.2.0 in Java...Maven dependency for  ch.jodersky  - Version 4.2.0 of akka-serial-stream_2.12 released The developers of   ch.jodersky - akka-serial
Maven dependency for ch.jodersky - akka-serial-sync_2.11 version 4.0.0-RC1 is released. Learn to use akka-serial-sync_2.11 version 4.0.0-RC1 in Maven based Java projects
-serial-sync_2.11 released The developers of   ch.jodersky - akka-serial..., the released version of  ch.jodersky - akka-serial-sync_2.11 library is 4.0.0-RC1. Developer can use this version ( ch.jodersky - akka-serial-sync_2.11
Maven dependency for ch.jodersky - akka-serial-sync_2.11 version 4.0.0 is released. Learn to use akka-serial-sync_2.11 version 4.0.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-sync_2.11 version 4.0.0 in Java projects... and includes  ch.jodersky - akka-serial-sync_2.11 version 4.0.0 java library...Maven dependency for  ch.jodersky  - Version 4.0.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-sync_2.11 version 4.1.0 is released. Learn to use akka-serial-sync_2.11 version 4.1.0 in Maven based Java projects
to use  ch.jodersky - akka-serial-sync_2.11 version 4.1.0 in Java projects... and includes  ch.jodersky - akka-serial-sync_2.11 version 4.1.0 java library...Maven dependency for  ch.jodersky  - Version 4.1.0 of akka-serial
Maven dependency for ch.jodersky - akka-serial-sync_2.11 version 4.1.1 is released. Learn to use akka-serial-sync_2.11 version 4.1.1 in Maven based Java projects
to use  ch.jodersky - akka-serial-sync_2.11 version 4.1.1 in Java projects... and includes  ch.jodersky - akka-serial-sync_2.11 version 4.1.1 java library...Maven dependency for  ch.jodersky  - Version 4.1.1 of akka-serial
Maven dependency for ch.jodersky - akka-serial-sync_2.11 version 4.1.2 is released. Learn to use akka-serial-sync_2.11 version 4.1.2 in Maven based Java projects
to use  ch.jodersky - akka-serial-sync_2.11 version 4.1.2 in Java projects... and includes  ch.jodersky - akka-serial-sync_2.11 version 4.1.2 java library...Maven dependency for  ch.jodersky  - Version 4.1.2 of akka-serial
Maven dependency for ch.jodersky - akka-serial-sync_2.11 version 4.1.4 is released. Learn to use akka-serial-sync_2.11 version 4.1.4 in Maven based Java projects
to use  ch.jodersky - akka-serial-sync_2.11 version 4.1.4 in Java projects... and includes  ch.jodersky - akka-serial-sync_2.11 version 4.1.4 java library...Maven dependency for  ch.jodersky  - Version 4.1.4 of akka-serial

Ads