This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Java compilation with gcj...
- To: gcc-help at gcc dot gnu dot org
- Subject: Java compilation with gcj...
- From: Mike Harrold <mharrold at cas dot org>
- Date: Thu, 18 Jan 2001 16:37:36 -0500 (EST)
Hi,
I get the following error when trying to use gcj to compile a class file:
[miko@mah21hpc2 src]$ gcj -v Test.java
Reading specs from /usr/local/gcc-2.95.2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
Reading specs from libgcj.spec
gcc version 2.95.2 19991024 (release)
/usr/local/gcc-2.95.2/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/jc1 Test.java -quiet -g1 -version -o /tmp/ccpv7GJN.s
GNU Java version 2.95.2 19991024 (release) (i586-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
Test.java:0: Can't find default package `java.lang'. Check the CLASSPATH environment variable and the access to the archives.
1 error
What should I be setting CLASSPATH to? Does gcj come with it's own java.lang (etc),
or should I be pointing at something else?
Thanks,
/Mike