public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/45433]  New: Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain
@ 2010-08-27 21:07 leo dot izen at gmail dot com
  2010-08-27 21:08 ` [Bug java/45433] " leo dot izen at gmail dot com
  2010-08-27 21:35 ` jakub at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: leo dot izen at gmail dot com @ 2010-08-27 21:07 UTC (permalink / raw)
  To: java-prs

I just compiled gcc for fedora, and I'm getting this error:

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

[Leo@chessman ~]$ gcj -v -save-temps -o HelloWorld HelloWorld.java
Using built-in specs.
Reading specs from
/usr/local/lib/gcc/x86_64-fedora-linux-gnu/4.6.0/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
COLLECT_GCC=gcj
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-fedora-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-fedora-linux-gnu
Configured with: ./configure --build=x86_64-fedora-linux-gnu --with-ecj-jar
Thread model: posix
gcc version 4.6.0 20100827 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-v' '-save-temps' '-o' 'HelloWorld'
'-fbootclasspath=./:/usr/local/share/java/libgcj-4.6.0.jar' '-g1'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/libexec/gcc/x86_64-fedora-linux-gnu/4.6.0/ecj1 HelloWorld.java -g1
-fbootclasspath=./:/usr/local/share/java/libgcj-4.6.0.jar -g1 -fsource=1.5
-ftarget=1.5 -fzip-dependency HelloWorld.zip -fzip-target HelloWorld.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(libgcj.so.10)
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(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at gnu.java.lang.MainThread.run(libgcj.so.10)
[Leo@chessman ~]$ 

I built this GCC today with the GCC I built yesterday (also 4.6.0). That also
had this java error.


-- 
           Summary: Can't find GCCMain in
                    org.eclipse.jdt.internal.compiler.batch.GCCMain
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: leo dot izen at gmail dot com
 GCC build triplet: x86_64-fedora-linux-gnu
  GCC host triplet: x86_64-fedora-linux-gnu
GCC target triplet: x86_64-fedora-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45433


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

* [Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain
  2010-08-27 21:07 [Bug java/45433] New: Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain leo dot izen at gmail dot com
@ 2010-08-27 21:08 ` leo dot izen at gmail dot com
  2010-08-27 21:35 ` jakub at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: leo dot izen at gmail dot com @ 2010-08-27 21:08 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from leo dot izen at gmail dot com  2010-08-27 21:08 -------
Created an attachment (id=21580)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21580&action=view)
file I tried to compile


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45433


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

* [Bug java/45433] Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain
  2010-08-27 21:07 [Bug java/45433] New: Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain leo dot izen at gmail dot com
  2010-08-27 21:08 ` [Bug java/45433] " leo dot izen at gmail dot com
@ 2010-08-27 21:35 ` jakub at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-27 21:35 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from jakub at gcc dot gnu dot org  2010-08-27 21:35 -------
You need to read the documentation, which would tell you you need to use
-fmain=HelloWorld option.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45433


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

end of thread, other threads:[~2010-08-27 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-27 21:07 [Bug java/45433] New: Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain leo dot izen at gmail dot com
2010-08-27 21:08 ` [Bug java/45433] " leo dot izen at gmail dot com
2010-08-27 21:35 ` jakub at gcc dot gnu dot org

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