Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Serial Port - Unhandled Exception
Serial Port - Unhandled Exception [message #155113] Tue, 27 September 2005 03:43 Go to next message
Eclipse UserFriend
Hello All

I am trying to listen to the Serial Port and trap the data sent. I have
added the comm.jar file in the C:\Program Files\Java\j2re1.4.0_01\lib\ext
folder. I don't have any errors when I build my project but when i run
this, it fails and gives me the following error.

I hav checked my program by running in another IDE. It is Perfect
running there. But I failed when I done in eclipse. It seems I found
someone in this group, faced the same error. Could u Please help me.


Unhandled exception caught in event loop.

Reason:

javax/comm/SerialPortEventListener


Regards,
Senthil Kumar
Re: Serial Port - Unhandled Exception [message #156976 is a reply to message #155113] Fri, 28 October 2005 11:37 Go to previous message
Eclipse UserFriend
I was able to work around in Windows using the following static
initializer:

static {
// ******** This is Windows specific code
CommDriver driver = new com.sun.comm.Win32Driver();
driver.initialize();
}
Previous Topic:CDT takes over JDT?
Next Topic:Project size
Goto Forum:
  


Current Time: Mon Jul 21 21:07:05 EDT 2025

Powered by FUDForum. Page generated in 0.05045 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top