My application executes smoothly when I Run the project from Netbeans. After a Clean & Build I tried:
java -jar "/home/eus/NetBeansProjects/HimaraTest/dist/HimaraTest.jar"
and strangely it gives me the following error:
Someone can tell me why? What is wrong with the app?
java -jar "/home/eus/NetBeansProjects/HimaraTest/dist/HimaraTest.jar"
and strangely it gives me the following error:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Sheet
Caused by: java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.Sheet
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: himaratest.NewJFrame4. Program will exit.
Someone can tell me why? What is wrong with the app?