Hi everybody
I want to compile and run a
java GUI, I passed these steps:
1- javac *.java
2- jar –cfm GUI.jar manifesto *.class About_DL_POLY Acknowledge CERAMICS MINIDREI MINIOPLS WATER.300K TestInfo Licence Disclaimer
3- ./build
but I got this error:
bash: ./build: Permission denied
I tried to solve it, I use this command instead of it:
chmod 755 build
When I ran it I got this error :
..../execute$ java –jar
Exception in
thread "main" java.lang.NoClassDefFoundError: –jar
Caused by: java.lang.ClassNotFoundException: –jar
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: –jar. Program will exit.
-------------------