From dev-return-32784-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Tue Mar 02 11:33:20 2010 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 56378 invoked from network); 2 Mar 2010 11:33:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 11:33:20 -0000 Received: (qmail 54903 invoked by uid 500); 2 Mar 2010 11:33:17 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 54865 invoked by uid 500); 2 Mar 2010 11:33:16 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 54858 invoked by uid 99); 2 Mar 2010 11:33:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 11:33:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcaidd-directory-dev@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 11:33:07 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NmQLF-00079K-5u for dev@directory.apache.org; Tue, 02 Mar 2010 12:32:45 +0100 Received: from mail.elsag-solutions.com ([62.154.225.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Mar 2010 12:32:45 +0100 Received: from joerg.schaible by mail.elsag-solutions.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Mar 2010 12:32:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@directory.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: Failed to load Main-Class manifest attribute from ldap-proxy-0.2-SNAPSHOT.jar Followup-To: gmane.comp.apache.incubator.directory.devel Date: Tue, 02 Mar 2010 12:32:31 +0100 Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: mail.elsag-solutions.com User-Agent: KNode/4.3.5 X-Virus-Checked: Checked by ClamAV on apache.org 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 ldap-proxy-0.2-SNAPSHOT1.org.apache.ldap.proxy.gui.MainFrame " > > and got the result > > Exception in thread "main" java.lang.NoClassDefFoundError: > ldap-proxy-0.2-SNAPSHOT1.org.apache.ldap.proxy.gui.MainFrame > at gnu.java.lang.MainThread.run(libgcj.so.90) > Caused by: java.lang.ClassNotFoundException: > ldap-proxy-0.2-SNAPSHOT1.org.apache.ldap.proxy.gui.MainFrame not found > in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], > parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} > at java.net.URLClassLoader.findClass(libgcj.so.90) > at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90) > at java.lang.ClassLoader.loadClass(libgcj.so.90) > at java.lang.ClassLoader.loadClass(libgcj.so.90) > at gnu.java.lang.MainThread.run(libgcj.so.90) > > 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