directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: Failed to load Main-Class manifest attribute from ldap-proxy-0.2-SNAPSHOT.jar
Date Tue, 02 Mar 2010 11:32:31 GMT
Keheliya Gallaba wrote at Dienstag, 2. März 2010 08:59:

> Sorry for troubling you again. But I found I have mistaken when
> entering the command for running the jar. I later entered the command
> " java "
> and got the result
> Exception in thread "main" java.lang.NoClassDefFoundError:
>    at
> Caused by: java.lang.ClassNotFoundException:
> not found
> in gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>    at
>    at gnu.gcj.runtime.SystemClassLoader.findClass(
>    at java.lang.ClassLoader.loadClass(
>    at java.lang.ClassLoader.loadClass(
>    at
> Please clarify me on the correct path I should have taken

Please have a look at the documentation for the command line options. You 
either provide the jar and let java find itself the Main class from the 
manifest or you provide the Main class yourself (like you did here) and java 
must find the class in the provided classpath.

None of this have to do with Apache Directory though.

- Jörg

View raw message