Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use Java in Windows to interface with com ports?

Status
Not open for further replies.

psi

Member level 2
Joined
Jan 13, 2003
Messages
42
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
268
Java and com ports

Is there a way to use Java in windows to interface with serial or parallel com ports?

I know there is a way to do it in linux... but what about in windows?

Thanks
 

Hi,

Yes there is a way in java to access com ports.
You have to download Java Comm API from sun official site.

When you visit the sun official site.. I think its
java.sun.com or sun.java.com
Just try it out..
there search for this API it should be under download sections.
While downloading just select for windows..

It works wonderfully..

I tried it out with some little project and it works really good.

If there is any further information you need, do let me know

Regards

Sanjay
 

Re: Java and com ports

Thank you for tip... I see that this was originally a javax project... I hope they can embed it into the jdk sometime in the future...
 

Re: Java and com ports

Sun has stated that it will never put the COMM API into the JDK. Right now it only supports Windows and Solaris. They are working on a USB version of the API.

For projects sometimes it might be easier to use JNI and create whatever native code you need and interface it to Java.

- Jayson
 

Re: Java and com ports

For those interested, another article on Java USB:
**broken link removed**
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top