Problems compiling with gcj
Jeff Sturm
jeff.sturm@appnet.com
Thu Jan 18 20:00:00 GMT 2001
Mike Harrold wrote:
> [miko@mah21hpc2 src]$ gcj Test.java
> Test.java:0: Can't find default package `java.lang'. Check the CLASSPATH environment variable and the access to the archives.
> 1 error
The 2.95 releases included the compiler frontend but no java runtime.
For that you need libgcj:
http://sources.redhat.com/java/download.html
Note however this release is unfortunately very out of date. It does
not have a complete Java 1.1 implementation and has significant
limitations. But this is the only release you can use with the 2.95.2
compiler.
When GCC 3.0 is released (soon, hopefully) it will include a much
improved gcj runtime, and a separate download will no longer be needed.
Jeff
More information about the Java
mailing list