Package: gcj Version: 1:3.0-3 Severity: normal > Hello.java << EOF public class Hello { public static void main(String[] args) { System.out.println("Hello!"); } } EOF /usr/bin/gcj -static -o Hello --main=Hello Hello.java
gives: /usr/lib/gcc-lib/i386-linux/3.0/../../../libgcj.a(Properties.o): In function `java::util::Properties::store(java::io::OutputStream*, java::lang::String*)': Properties.o(.text+0x7df): undefined reference to `java::util::Date::class$' Properties.o(.text+0x7ef): undefined reference to `java::util::Date::Date()' /usr/lib/gcc-lib/i386-linux/3.0/../../../libgcj.a(Vector.o)(.data+0x400): undefined reference to `java::util::List::class$' /usr/lib/gcc-lib/i386-linux/3.0/../../../libgcj.a(FirstThread.o): In function `gnu::gcj::runtime::FirstThread::__U3c_clinit__U3e_()': FirstThread.o(.text+0x219): undefined reference to `gnu::gcj::protocol::http::Handler::class$' FirstThread.o(.text+0x224): undefined reference to `gnu::gcj::protocol::file::Handler::class$' [and much more ...] -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux robyn 2.4.4 #2 ons maj 30 20:27:38 CEST 2001 i686 Locale: LANG=sv_SE.ISO8859-1, LC_CTYPE=C Versions of packages gcj depends on: ii cpp 1:2.95.4-1 The GNU C preprocessor. ii g++-3.0 1:3.0-0pre010526 The GNU C++ compiler. ii gcj-3.0 1:3.0-0pre010526 The GNU compiler for Java(TM).