How do you run the jar file? (outside netbeans). with java -jar .... ?
If you do so, the jar files need to be included in the resulting jar file, or you have to add it to the classpath, via -cp ... -----Ursprüngliche Nachricht----- Von: jamborta [mailto:jambo...@gmail.com] Gesendet: Dienstag, 13. Oktober 2009 11:38 An: users@maven.apache.org Betreff: Re: AW: Running Jar file created by Maven it's a pure java project. and it runs OK inside netbeans. I get a NoClassDefFoundError if try to run it from the command line: Exception in thread "main" java.lang.NoClassDefFoundError: cern/colt/function/In tObjectProcedure at com.main.App.main(App.java:36) Caused by: java.lang.ClassNotFoundException: cern.colt.function.IntObjectProcedu re at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 1 more What kind of project are you talking about? Is it a pure Java project or does it run inside glassfish (for example)? What class files are missing? How does the stacktrace look like? Try to add the missing artifacts to the pom. -- View this message in context: http://www.nabble.com/Running-Jar-file-created-by-Maven-tp25869690p25869863.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org