From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24309 invoked by alias); 6 Nov 2011 01:28:27 -0000 Received: (qmail 24299 invoked by uid 22791); 6 Nov 2011 01:28:26 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GC X-Spam-Check-By: sourceware.org Received: from mail-vw0-f43.google.com (HELO mail-vw0-f43.google.com) (209.85.212.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 Nov 2011 01:28:11 +0000 Received: by vws13 with SMTP id 13so554648vws.2 for ; Sat, 05 Nov 2011 18:28:10 -0700 (PDT) Received: by 10.52.34.177 with SMTP id a17mr20804505vdj.103.1320542888782; Sat, 05 Nov 2011 18:28:08 -0700 (PDT) Received: from [192.168.0.100] (S0106000cf16f58b1.wp.shawcable.net. [24.79.200.150]) by mx.google.com with ESMTPS id bu10sm21960552vdb.3.2011.11.05.18.28.07 (version=SSLv3 cipher=OTHER); Sat, 05 Nov 2011 18:28:08 -0700 (PDT) Subject: Re: gcj exception compiling From: "Yaakov (Cygwin/X)" To: cygwin Date: Sun, 06 Nov 2011 01:28:00 -0000 In-Reply-To: <3E1FD932-EE66-4151-A2B4-026F1D6FA7F0@flashpixx.de> References: <3E1FD932-EE66-4151-A2B4-026F1D6FA7F0@flashpixx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Message-ID: <1320542893.7860.7.camel@YAAKOV04> Mime-Version: 1.0 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00100.txt.bz2 On Sat, 2011-11-05 at 19:13 +0100, Kraus Philipp wrote: > Hello, > > I try to build a Java class with the gcj under Cygwin. I get this error message: > > Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.inter > nal.compiler.batch.GCCMain > at gnu.java.lang.MainThread.run(Unknown Source) > Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.b > atch.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) You're missing the ECJ jar. Either download ftp://sourceware.org/pub/java/ecj-4.5.jar and install it to /usr/share/java/ecj.jar or install java-ecj from Cygwin Ports. > The class does not have any main function. > On the default gcj installation, it creates this error first: > > /usr/lib/gcc/i686-pc-cygwin/4.5.3/ecj1.exe: error while loading shared libraries > : cyggcj-11.dll: cannot open shared object file: No such file or directory > > So I install the gcj-11 library, the setup installs gcj-9 on default. > > How can I create a working installation? Install libgcj11. (P.S. Dave Korn: I took the liberty of fixing this on sourceware.) Yaakov -- 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