Howto compile java?

Martin Kahlert martin.kahlert@infineon.com
Tue Dec 19 03:20:00 GMT 2000


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.


More information about the Gcc mailing list