* Gnu Compiler for Java compiling
@ 2012-04-02 8:49 Me Myself and I
2012-04-02 18:14 ` David Rothenberger
0 siblings, 1 reply; 4+ messages in thread
From: Me Myself and I @ 2012-04-02 8:49 UTC (permalink / raw)
To: cygwin
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
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)
Has there been a corrupted installation or download? Should I just
reinstall cygwin from the start? Or is there something simple I should do?
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gnu Compiler for Java compiling
2012-04-02 8:49 Gnu Compiler for Java compiling Me Myself and I
@ 2012-04-02 18:14 ` David Rothenberger
2012-04-02 18:42 ` marco atzeri
0 siblings, 1 reply; 4+ messages in thread
From: David Rothenberger @ 2012-04-02 18:14 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gnu Compiler for Java compiling
2012-04-02 18:14 ` David Rothenberger
@ 2012-04-02 18:42 ` marco atzeri
2012-04-02 18:47 ` David Rothenberger
0 siblings, 1 reply; 4+ messages in thread
From: marco atzeri @ 2012-04-02 18:42 UTC (permalink / raw)
To: cygwin
On 4/2/2012 8:14 PM, David Rothenberger wrote:
> 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.
>
use the search
http://cygwin.com/cgi-bin2/package-cat.cgi?file=gcc4-java%2Fgcc4-java-4.3.4-4&grep=download_ecj.sh
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gnu Compiler for Java compiling
2012-04-02 18:42 ` marco atzeri
@ 2012-04-02 18:47 ` David Rothenberger
0 siblings, 0 replies; 4+ messages in thread
From: David Rothenberger @ 2012-04-02 18:47 UTC (permalink / raw)
To: cygwin
On 4/2/2012 11:42 AM, marco atzeri wrote:
> On 4/2/2012 8:14 PM, David Rothenberger wrote:
>> 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.
>>
> use the search
>
> http://cygwin.com/cgi-bin2/package-cat.cgi?file=gcc4-java%2Fgcc4-java-4.3.4-4&grep=download_ecj.sh
It's not part of the most recent gcc4-java package.
515 ~> cygcheck -cd gcc4-java
Cygwin Package Information
Package Version
gcc4-java 4.5.3-3
516 ~> cygcheck -l gcc4-java | grep download
517 ~> ls -l /usr/sbin/download*
/bin/ls: cannot access /usr/sbin/download*: No such file or directory
--
David Rothenberger ---- daveroth@acm.org
Jones' Second Law:
The man who smiles when things go wrong has thought of someone
to blame it on.
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-02 18:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-02 8:49 Gnu Compiler for Java compiling Me Myself and I
2012-04-02 18:14 ` David Rothenberger
2012-04-02 18:42 ` marco atzeri
2012-04-02 18:47 ` David Rothenberger
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).