X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4ACAC468.5040907@gmail.com> Date: Tue, 06 Oct 2009 05:15:36 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: gcc4-java: ecj1 not working References: <4ACAB9D5 DOT 8070106 AT users DOT sourceforge DOT net> In-Reply-To: <4ACAB9D5.8070106@users.sourceforge.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Yaakov (Cygwin/X) wrote: > With gcc4-java 4.3.4-1: > > $ gcj-4 -C HelloWorld.java > Exception in thread "main" java.lang.NoClassDefFoundError: > org.eclipse.jdt.internal.compiler.batch.GCCMain > at gnu.java.lang.MainThread.run(Unknown Source) > Caused by: java.lang.ClassNotFoundException: > org.eclipse.jdt.internal.compiler.batch.GCCMain not found in > gnu.gcj.runtime.SystemClassLoader{urls=[], > parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at gnu.java.lang.MainThread.run(Unknown Source) WFM: admin AT ubik /tmp/java/test $ ls Hello.java admin AT ubik /tmp/java/test $ ls -la total 5 drwxr-xr-x 1 DKAdmin None 0 Oct 6 05:09 . drwxr-xr-x 1 DKAdmin None 4096 Oct 6 05:09 .. -rw-r--r-- 1 DKAdmin None 134 Oct 6 05:09 Hello.java admin AT ubik /tmp/java/test $ gcj-4 -C Hello.java admin AT ubik /tmp/java/test $ echo $? 0 admin AT ubik /tmp/java/test $ ls -la total 6 drwxr-xr-x 1 DKAdmin None 0 Oct 6 05:10 . drwxr-xr-x 1 DKAdmin None 4096 Oct 6 05:09 .. -rw-r--r-- 1 DKAdmin None 416 Oct 6 05:10 Hello.class -rw-r--r-- 1 DKAdmin None 134 Oct 6 05:09 Hello.java > OTOH: > > $ gij-4 -jar ecj-4.3.jar HelloWorld.java Hmmmm: $ gij-4 -jar ecj-4.3.jar HelloWorld.java Failed to load Main-Class manifest attribute from ecj-4.3.jar admin AT ubik /tmp/java/test $ Do we have the same latest ecj? $ md5sum /usr/share/java/ecj-4.3.jar fd299f26c02268878b5d6c0e86f57c43 */usr/share/java/ecj-4.3.jar cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple