This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/42409] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found
- From: "jlpoole at pon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2009 17:54:38 -0000
- Subject: [Bug java/42409] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(This Bug follows 4205 which is not marked FIXED)
On armv5tel-unknown-linux-gnueabi I compiled gcj plus .../contrib/download_ecj.
Last Changed Rev: 155206
Last Changed Date: 2009-12-13 21:06:50 -0800 (Sun, 13 Dec 2009)
installed with "DESTDIR=/usr/local/gcj"
set LD_LIBRARY_PATH=/usr/local/gcj/usr/local/lib
plug bin # ./gcj -v -I /usr/local/gcj/usr/local/share/java/libgcj-4.5.0.jar
/var
/work/gcj/HelloWorld.java
produces:
...
Target: armv5tel-unknown-linux-gnueabi
Configured with: ../trunk/configure --enable-languages=java : (reconfigured)
../
trunk/configure --enable-languages=java
Thread model: posix
gcc version 4.5.0 20091214 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-v'
'-fbootclasspath=/usr/local/gcj/usr/l
ocal/share/java/libgcj-4.5.0.jar:./:/usr/local/share/java/libgcj-4.5.0.jar'
'-g1
' '-shared-libgcc'
/usr/local/gcj/usr/local/bin/../libexec/gcc/armv5tel-unknown-linux-gnueabi/4.5.
0/ecj1 /var/work/gcj/HelloWorld.java -g1
-fbootclasspath=/usr/local/gcj/usr/loca
l/share/java/libgcj-4.5.0.jar:./:/usr/local/share/java/libgcj-4.5.0.jar -g1
-fso
urce=1.5 -ftarget=1.5 -fzip-dependency /tmp/ccEAvqtm.zip -fzip-target
/tmp/ccgLw
7My.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.inter
nal.compiler.batch.GCCMain
at gnu.java.lang.MainThread.run(MainThread.java:100)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.b
atch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[],
parent=gnu.
gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
at java.lang.ClassLoader.loadClass(ClassLoader.java:452)
at java.lang.ClassLoader.loadClass(ClassLoader.java:387)
at gnu.java.lang.MainThread.run(MainThread.java:96)
plug bin #
Here's the test code:
plug bin # cat /var/work/gcj/HelloWorld.java
class HelloWorld {
public static void main(String args[]){
System.out.println("Hello World!");
}
}
plug bin #
I really feel badly having to come to you with my struggling; however, I have a
good deal of experience with Perl and some Java and find myself gated by what
members of this team think trivial. Please keep in mind when someone comes to
try installing the gcc compiler and getting it to run, they do not have the
experience and day-to-day exposure you have, so something simple as an
incorrect path can be confounding.
I'm not sure which class is missing (or not pointed to with the class path)
from the above output.
--
Summary: org.eclipse.jdt.internal.compiler.batch.GCCMain not
found
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jlpoole at pon dot net
GCC build triplet: armv5tel-unknown-linux-gnueabi
GCC host triplet: armv5tel-unknown-linux-gnueabi
GCC target triplet: armv5tel-unknown-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42409