java newbie: gcj can't find its own jars?
What extra configuration is needed for gcj-3.3 to work? I have a fresh
installation of it, but it can't access its own jar and lib for the
standard packages. They are on the CLASSPATH, as shown by the -v output
below. I'm running Sid.
Thanks,
Jonathan
ex.:
-----
import java.lang.Math.*;
public class Test
{
public static void main( String[] args)
{
System.out.println( "e^2: " + Math.exp( 2.0) );
}
}
------
$ gcj --classpath=/usr/share/java/libgcj-3.3.jar -v -C Test.java
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i386-linux
Thread model: posix
gcc version 3.3 (Debian)
/usr/lib/gcc-lib/i386-linux/3.3/jc1 Test.java -quiet -dumpbase
Test.java -auxbase-strip NONE -g1 -version -fsyntax-only
-femit-class-files -o /dev/null
GNU Java version 3.3 (Debian) (i386-linux)
compiled by GNU C version 3.3 (Debian).
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48342
Class path starts here:
./
/usr/share/java/repository/
/usr/share/java/libgcj-3.3.jar/ (system) (zip)
Test.java:1: error: Can't find default package `java.lang.Math'. Check
the CLASSPATH environment variable and the access to the archives
1 error
Reply to: