This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Howto compile java?
- To: gcc at gcc dot gnu dot org
- Subject: Howto compile java?
- From: Martin Kahlert <martin dot kahlert at infineon dot com>
- Date: Tue, 19 Dec 2000 12:20:29 +0100
- Reply-To: martin dot kahlert at infineon dot com
Hi!
i can't compile java with today's snapshot on Linux:
I configured using
../configure --prefix=/sw/snapshots --enable-languages=c++,f77,java \
--enable-threads=posix --enable-libstdcxx-v3 --disable-new-gxx-abi
and did a 'make bootstrap'
and after that a 'make install'
gcj -o hello --main=hello hello.java
produces hello.java:0: Can't find default package `java.lang'.
Check the CLASSPATH environment variable and the access to the archives.
CLASSPATH is not set, and there is no java.lang anywhere on my system.
The previous snapshot did not have this problem.
If i remember correctly, it had some java related libs in /sw/snapshots
Could anybody please tell me, how i should compile java correctly?
(Are all of the configure flags still needed?)
Thanks,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.