The Artima Developer Community
Sponsored Link

Java Answers Forum
NullPointerException & javax.comm

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
madicken

Posts: 1
Nickname: madicken
Registered: Dec, 2002

NullPointerException & javax.comm Posted: Dec 5, 2002 4:43 AM
Reply to this message Reply
Advertisement
Hi!
I get a NullPointerException when I try to do:
serialPort = (SerialPort) portId.open(appName, 2000);
I'm trying to create a connection between two applications on the same PC via the RS232-port, using a loopback plug.
I have copied the comm.jar and the javax.comm.properties to the C:\j2sdk1.4.0_03\lib directory and the win32com.dll file in the C:\Windows\System subdirectory.
Anyone has an idea?
Thanks!
/M

Topic: Polymorphism & inheritance Previous Topic   Next Topic Topic: DragnDrop JButtons using Swing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use