For Programmers: Free Programming Magazines  


Home > Archive > Java Help > November 2005 > NetBeans NoClassDefFoundError









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author NetBeans NoClassDefFoundError
Google@TradeHound.com

2005-11-22, 9:58 pm

I am using NetBeans 4.1. I have a simple project, TestFormJar, that
works fine when running thru NetBeans. But when I double click
TestFormJar.jar it doesn't work correctly. And when I run
TestFormJar.jar from a command line it gives NoClassDefFoundError.

There is a third party file, enum11.jar, that I have included in
NetBeans. I unzipped TestFormJar.jar and discovered that enum11.jar
isn't included in TestFormJar.jar.

How do I tell NetBeans to include all the .jar files necessary to run
as a stand alone? NetBeans has it since it somehow works within the
IDE.

Thank you for any suggestions.

Google@TradeHound.com

2005-11-25, 7:01 pm

I discovered that NetBeans is for development only and is not very
"production" friendly. So it will NOT create an executable .jar if
there is anything in your Library.

But I did find a way to work around it:
http://www.netbeans.org/servlets/Re...ers&msgNo=56396

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com