From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
To: cygwin <cygwin@cygwin.com>
Subject: Re: gcj exception compiling
Date: Sun, 06 Nov 2011 01:28:00 -0000 [thread overview]
Message-ID: <1320542893.7860.7.camel@YAAKOV04> (raw)
In-Reply-To: <3E1FD932-EE66-4151-A2B4-026F1D6FA7F0@flashpixx.de>
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
next prev parent reply other threads:[~2011-11-06 1:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-05 18:13 Kraus Philipp
2011-11-06 1:28 ` Yaakov (Cygwin/X) [this message]
2011-11-06 20:16 ` Philipp Kraus
2011-11-07 2:05 ` Yaakov (Cygwin/X)
2011-11-07 6:36 ` Philipp Kraus
2011-11-07 14:12 ` Jon Clugston
2011-11-10 5:18 ` Dave Korn
2011-11-10 5:29 ` Dave Korn
2011-11-10 5:53 ` Yaakov (Cygwin/X)
2011-11-10 6:07 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320542893.7860.7.camel@YAAKOV04 \
--to=yselkowitz@users.sourceforge.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).