NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

java -jar fails for working Netbeans project

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
mistertransistor



Joined: 09 Dec 2009
Posts: 39

PostPosted: Sun Feb 13, 2011 9:55 pm    Post subject: java -jar fails for working Netbeans project Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo