This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Howto compile java?


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]