Hi shtegtari,
In order to execute a jar from command line, you have to pass the "-jar"
parameter like:
# java -jar
/opt/downloads/xwiki-enterprise-installer-generic-3.0-standard.jar
If you do not pass the "-jar" parameter, java tries to launch the class
named
"/opt/downloads/xwiki-enterprise-installer-generic-3.0-standard.jar"
which is obviously not found.
Thanks,
Eduard
On 05/02/2011 10:25 AM, shtegtari wrote:
The attempt to install XWiki on Fedora 14 fails with
the following error message:
# java /opt/downloads/xwiki-enterprise-installer-generic-3.0-standard.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
/opt/downloads/xwiki-enterprise-installer-generic-3/0-standard/jar
Caused by: java.lang.ClassNotFoundException:
.opt.downloads.xwiki-enterprise-installer-generic-3.0-standard.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:
/opt/downloads/xwiki-enterprise-installer-generic-3.0-standard.jar. Program will exit.
#
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users