This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Howto compile java?
On Tue, Dec 19, 2000 at 11:07:32AM -0700, Tom Tromey wrote:
> >>>>> "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.
Sounds good.
> 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.
It works for C, f77 and C++. I did not try to compile java before the
2000-12-11 snapshot, so i can't tell, if it worked before the integration.
> 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.
No, there isn't even a install. I only have a $prefix/share dir
but there is only locale inside.
> >From there work backwards: why didn't it get installed? Was it not
> built?
Seems that it was not built.
The top level configure.in file says around line 745:
*-*-linux*)
echo 'Kacke!'
noconfigdirs="${libgcj}"
This belongs to
case "${target}" in ...
Seems, that libgcj isn't built on many targets ;-)
Is there any magic, that avoids this lines?
Thanks for your reply,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.