File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes Unable to lis thte Comm Ports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Unable to lis thte Comm Ports" Watch "Unable to lis thte Comm Ports" New topic
Author

Unable to lis thte Comm Ports

Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
HI

I am developing a sms server app for a demo purpose...

When I run the web within the Netbeans IDE while development there is no problem...

The problem happens only when I deploy the app in a standalone Apache Tomcat (The one thats not integrated within Netbeans)..

Please note that both the development and deployment happened on the same machine with same state...

When I try to get a list of Comm ports available on the PC it doesnt work..

I am doing this with javax.comm.CommPortIdentifier within a JSP and not a Servlet...

Meanwhile the GSM modem is connected to a local COMx port...

Please help me out in this


Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
Tapan Maru
Ranch Hand

Joined: May 08, 2006
Posts: 65
Hi

just try the following:

put comm.jar file in your <jre installation directory>/lib/ext if you are not having jdk installed. if you have jdk installed, than <jdk>/<jre>/<lib>/<ext> directory

please let me know whether you get a list or not.

I am also using comm.jar and able to display the list. The only thing is I am not using netbeans. But I dont think it should be a problem


Tapan Maru
tapanmaru@gmail.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to lis thte Comm Ports