This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/45433] New: Can't find GCCMain in org.eclipse.jdt.internal.compiler.batch.GCCMain


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]