PDA

View Full Version : having some classpath problems



the_real_fourthdimension
November 8th, 2009, 04:16 AM
Hey All

I'm trying to package a java app I'm writing in netbeans. It runs from within the directory that netbeans built it in, but if I move it somewhere else, I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication

I've added both swing libraries available in netbeans to the compilation and run paths and messed with the manifest file a bit, but nothing has any effect.

Does anyone know how to fix this so that I can run this jar file independent of the location?
Thanks a lot.