Howto compile java?
Tom Tromey
tromey@redhat.com
Tue Dec 19 09:52:00 GMT 2000
>>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:
Martin> ./configure --prefix=/sw/snapshots --enable-languages=c++,f77,java \
Martin> --enable-threads=posix --enable-libstdcxx-v3 --disable-new-gxx-abi
This looks right.
Martin> and did a 'make bootstrap'
Martin> and after that a 'make install'
I never do `make bootstrap'. That didn't used to work. Maybe it does
now, though.
Martin> gcj -o hello --main=hello hello.java
Martin> produces hello.java:0: Can't find default package `java.lang'.
Martin> Check the CLASSPATH environment variable and the access to the archives.
This means that the libgcj jar file was not correctly installed.
Look in $prefix/install/share. If `libgcj.jar' does not appear there,
then that is the problem.
>From there work backwards: why didn't it get installed? Was it not
built?
Hmm... Warren says you still have to edit the toplevel configure. See
step 4 here:
http://sources.redhat.com/java/build-snapshot.html
This hackery will go away once Alex has fixed the ABI problems. This
will happen soon.
Tom
More information about the Gcc
mailing list