Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NoSuchPortException

843802Mar 14 2002 — edited Oct 24 2002
I'm trying to get javax.comm API to work with Web Start and I followed the following work-around suggested.
      String driverName = "com.sun.comm.Win32Driver";
      CommDriver commDriver = (CommDriver Class.forName( driverName ).newInstance();
      commDriver.initialize();

      System.setSecurityManager( null );
I ge the following exception when I try to run the application I downloaded through Web Start.

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)

I know the port exists because the same code works when I run it directly in my IDE.

Any ideas of what I could be doing wrong here?

Thanks,
Krishna

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2002
Added on Mar 14 2002
2 comments
96 views