I'm a long time reader, first time poster.
I use Netbeans to develop a Java application to run some simulations in regard to Project Management. Now the program is finished, I want to make a JAR file of it so other team members can use it without installing Netbeans. Normally I just press "build and clean" to make a JAR file but this trick ain't working this time. When I run the JAR file everything works fine until I press the button to start the simulations. Next error is given on the command line in cmd:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: optimizat
ion/Lmder_fcn
at umontreal.iro.lecuyer.randvar.BetaGen.nextDouble(BetaGen.java:109)
at Scheduling.SimulationEngine.randomizeDurations(SimulationEngine.java:
122)
at Scheduling.SimulationEngine.simulateNew(SimulationEngine.java:73)
at IO.FileReader_GUI$GUIEventHandler.actionPerformed(FileReader_GUI.java
... blablabla
Point given is that the umontreal.iro.lecuyer.randvar.BetaGen.nextDouble()
method is a static method used from a JAR file I added to my project. In Netbeans it doesn't bring any problems but it does when I use run it 'stand-alone' without Netbeans.
Can somebody please give me a quick solution? Please keep in mind that I'm not a professional programmer. Do not hesitate to ask questions if you need more information!