Closed mfurlend closed 9 years ago
The manual execution above fails because the classpath does not contain any of the dependencies. But let's focus on the launch script. How does it fail? Do you get any output?
Stale.
Same issue, running it through the script
I ran mvn successfully, but the launch script fails. Both the launch script and this manual execution fail with the same exception:
/bin/java -classpath "/root/grib2json/target/classes/net/nullschool/grib2json/" -Xmx256M -jar grib2json-0.8.0-SNAPSHOT.jar !4544
Exception in thread "main" java.lang.NoClassDefFoundError: com/lexicalscope/jewel/JewelRuntimeException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getMethod0(Class.java:2774) at java.lang.Class.getMethod(Class.java:1663) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: com.lexicalscope.jewel.JewelRuntimeException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 6 more