Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-2008, 11:25 AM
Member
 
Join Date: Dec 2008
Posts: 11
Rep Power: 0
simo_mon is on a distinguished road
Default rs232 serial port on xp
hi i am trying to receive some data from a rs232 serial port on a xp machine
...
i tried the javax.comm but on further reading my understanding is that this is no longer supported/working

so i got the rxtx jar, added it to the buildpath of the project and removed the references to the java.comm stuff....

now when i go to use it i can call

Code:
import java.gnu.io;

but i can't import the specific stuff that i need ie

Code:
import gnu.io.CommPortIdentifier;
import gnu.io.NoSuchPortException;
import gnu.io.ParallelPort;
from which id like to do stuff like

Code:
try
  {
          //get the parallel port connected to the printer
          port = CommPortIdentifier.getPortIdentifier("COM1");

would appreciate any help

thanks
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Serial port using JDK 1.6 hasani6leap Advanced Java 5 01-24-2009 03:23 AM
Access Serial port hasani6leap Advanced Java 0 02-12-2008 09:45 AM
Reading from Serial port! Dogge New To Java 0 02-10-2008 04:16 PM
Serial Port radhika New To Java 4 11-16-2007 10:50 AM
serial port musiigedeo Advanced Java 0 07-23-2007 04:52 PM


All times are GMT +2. The time now is 04:10 PM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org