gcj exception compiling
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Sun Nov 6 01:28:00 GMT 2011
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
More information about the Cygwin
mailing list