I am using One-Jar to combine my application and its dependencies into one jar file. I used the command line approach step by step. However, when running the jar file with java -jar one-jar.jar I recieve the following
error:
Exception in thread "main" java.lang.ClassNotFoundException: com.webtest.hc.Main
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:713)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at com.simontuffs.onejar.JarClassLoader.loadClass(JarClassLoader.java:630)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.simontuffs.onejar.Boot.run(Boot.java:336)
at com.simontuffs.onejar.Boot.main(Boot.java:168)
Here is my boot-manifest.mf :
Manifest-Version: 1.0
Main-Class: com.simontuffs.onejar.Boot
One-Jar-Main-Class: com.webtest.hc.Main
and i followed the exact same instruction as it is in the One-Jar website