public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* gcj fails to compile java
@ 2010-09-25 13:20 Jack Howarth
  2010-09-28 19:21 ` Dr Andrew John Hughes
  0 siblings, 1 reply; 3+ messages in thread
From: Jack Howarth @ 2010-09-25 13:20 UTC (permalink / raw)
  To: java; +Cc: gcc

  I've filed PR45773 concerning the new regression in gcj where java classes can
no longer be compiled with ecj.jar. Since r163770 (with r163814 backported to fix
the libjava build), any attempt to compile a java source file with gcj produces
the error...

gcj --main=testme -O testme.java
Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(libgcj.12.dylib)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/sw/share/java/ecj/ecj.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.12.dylib)
   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
   at gnu.java.lang.MainThread.run(libgcj.12.dylib)

This problem does not exist at r163768. I am reposting this problem since the new
bugzilla keeps reporting...

GCC Bugzilla has suffered an internal error. Please save this page and send it to dberlin@gcc.gnu.org with details of what you were doing at the time this message appeared.

URL: file:///Users/howarth/Internal Error.html

There was an error sending mail from '"howarth at nitro dot med.uc.edu" <gcc-bugzilla@gcc.gnu.org>' to 'java-prs@gcc.gnu.org':Can't send data

whenever I add new information and nothing appears in the gcc-bugs archives from those sessions
(although the PR itself if updated).
            Jack

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcj fails to compile java
  2010-09-25 13:20 gcj fails to compile java Jack Howarth
@ 2010-09-28 19:21 ` Dr Andrew John Hughes
  2010-09-28 20:35   ` Jack Howarth
  0 siblings, 1 reply; 3+ messages in thread
From: Dr Andrew John Hughes @ 2010-09-28 19:21 UTC (permalink / raw)
  To: Jack Howarth; +Cc: java, gcc

On 25 September 2010 14:20, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
>  I've filed PR45773 concerning the new regression in gcj where java classes can
> no longer be compiled with ecj.jar. Since r163770 (with r163814 backported to fix
> the libjava build), any attempt to compile a java source file with gcj produces
> the error...
>
> gcj --main=testme -O testme.java
> Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
>   at gnu.java.lang.MainThread.run(libgcj.12.dylib)
> Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/sw/share/java/ecj/ecj.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>   at java.net.URLClassLoader.findClass(libgcj.12.dylib)
>   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
>   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
>   at gnu.java.lang.MainThread.run(libgcj.12.dylib)
>
> This problem does not exist at r163768. I am reposting this problem since the new
> bugzilla keeps reporting...
>
> GCC Bugzilla has suffered an internal error. Please save this page and send it to dberlin@gcc.gnu.org with details of what you were doing at the time this message appeared.
>
> URL: file:///Users/howarth/Internal Error.html
>
> There was an error sending mail from '"howarth at nitro dot med.uc.edu" <gcc-bugzilla@gcc.gnu.org>' to 'java-prs@gcc.gnu.org':Can't send data
>
> whenever I add new information and nothing appears in the gcc-bugs archives from those sessions
> (although the PR itself if updated).
>            Jack
>

With a simple HelloWorld class:

$ cat HelloWorld.java
public class HelloWorld
{
  public static void main(String[] args) { System.out.println("Hello World!"); }
}

current HEAD works fine for me:

$ /home/andrew/build/gcj/bin/gcj --main=HelloWorld -O HelloWorld.java
$ LD_LIBRARY_PATH=/home/andrew/build/gcj/lib64 ./a.out
Hello World!
$ /home/andrew/build/gcj/bin/gcj --version
gcj (GCC) 4.6.0 20100928 (experimental) [trunk revision 164689]

Can you attach the testme.java file?
-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcj fails to compile java
  2010-09-28 19:21 ` Dr Andrew John Hughes
@ 2010-09-28 20:35   ` Jack Howarth
  0 siblings, 0 replies; 3+ messages in thread
From: Jack Howarth @ 2010-09-28 20:35 UTC (permalink / raw)
  To: Dr Andrew John Hughes; +Cc: java, gcc

On Tue, Sep 28, 2010 at 08:21:45PM +0100, Dr Andrew John Hughes wrote:
> On 25 September 2010 14:20, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
> >  I've filed PR45773 concerning the new regression in gcj where java classes can
> > no longer be compiled with ecj.jar. Since r163770 (with r163814 backported to fix
> > the libjava build), any attempt to compile a java source file with gcj produces
> > the error...
> >
> > gcj --main=testme -O testme.java
> > Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
> >   at gnu.java.lang.MainThread.run(libgcj.12.dylib)
> > Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/sw/share/java/ecj/ecj.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
> >   at java.net.URLClassLoader.findClass(libgcj.12.dylib)
> >   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
> >   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
> >   at gnu.java.lang.MainThread.run(libgcj.12.dylib)
> >
> > This problem does not exist at r163768. I am reposting this problem since the new
> > bugzilla keeps reporting...
> >
> > GCC Bugzilla has suffered an internal error. Please save this page and send it to dberlin@gcc.gnu.org with details of what you were doing at the time this message appeared.
> >
> > URL: file:///Users/howarth/Internal Error.html
> >
> > There was an error sending mail from '"howarth at nitro dot med.uc.edu" <gcc-bugzilla@gcc.gnu.org>' to 'java-prs@gcc.gnu.org':Can't send data
> >
> > whenever I add new information and nothing appears in the gcc-bugs archives from those sessions
> > (although the PR itself if updated).
> >            Jack
> >
> 
> With a simple HelloWorld class:
> 
> $ cat HelloWorld.java
> public class HelloWorld
> {
>   public static void main(String[] args) { System.out.println("Hello World!"); }
> }
> 
> current HEAD works fine for me:

Of course it does because the bug was just fixed...

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45773#c20

> 
> $ /home/andrew/build/gcj/bin/gcj --main=HelloWorld -O HelloWorld.java
> $ LD_LIBRARY_PATH=/home/andrew/build/gcj/lib64 ./a.out
> Hello World!
> $ /home/andrew/build/gcj/bin/gcj --version
> gcj (GCC) 4.6.0 20100928 (experimental) [trunk revision 164689]
> 
> Can you attach the testme.java file?
> -- 
> Andrew :-)
> 
> Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
> 
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
> 
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-28 20:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-25 13:20 gcj fails to compile java Jack Howarth
2010-09-28 19:21 ` Dr Andrew John Hughes
2010-09-28 20:35   ` Jack Howarth

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).