This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: Problems compiling with gcj


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

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