NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
mistertransistor
Joined: 09 Dec 2009 Posts: 39
|
Posted: Sun Feb 13, 2011 9:55 pm Post subject: java -jar fails for working Netbeans project |
|
|
I have a Netbeans project that uses the RXTX serial port library to read data. It works fine in the IDE. However if I try to launch it under DOS using
java -jar myProg.jar
the application starts OK, but when I try to use the serial port I get a java.lang.NoClassDefFound error for gnu/io/SerialPortEventListener
I'm not a java expert but I assume this is a classpath problem. I followed the instructions for installing RXTX and obviously it works under NetBeans. This involved installing a dll and a jar file in appropriate directories.
Can anyone tell me how to get the stand-alone execution working?
Thanks
Andrew |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|