This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Gnu Compiler for Java compiling
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin at cygwin dot com
- Date: Mon, 02 Apr 2012 11:14:14 -0700
- Subject: Re: Gnu Compiler for Java compiling
- References: <BAY147-W303F5356A078EF1D320DB8D04C0@phx.gbl>
- Reply-to: cygwin at cygwin dot com
On 4/2/2012 1:48 AM, Me Myself and I wrote:
> I have just gone through the install with internet download using
> the latest cygwin windows installer,
> on my 64 bit Microsoft Windows 7. I assume that I've only gotten
> 32 bit software, which is not my issue.
>
> I am trying to compile my first java program,
>
> gcj Program.java --main=Program -o Program.exe
>
> and I find that I only get the errror message:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
Check /usr/share/doc/Cygwin/gcc4.README, specifically the section "Java
users need an additional download to compile source to bytecode."
I was not able to find the "download_ecj.sh" script mentioned there, but
downloading the ECJ jar file solved the problem for me.
--
David Rothenberger ---- daveroth@acm.org
O'Toole's commentary on Murphy's Law:
Murphy was an optimist.
--
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