This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
jc1: Can't find default package 'java.lang'
- To: java at gcc dot gnu dot org
- Subject: jc1: Can't find default package 'java.lang'
- From: Dachuan Yu <dachuan dot yu at yale dot edu>
- Date: Mon, 24 Sep 2001 16:05:40 -0400
- Organization: Yale University
Hi,
When I use GCJ (gcc i686-pc-linux-gnu 3.0) to
generate a shared library as follows,
******
gcj -share -fPIC -o A.so A.java
******
It works and gives me the output A.so file.
If I understand it correctly, what happens is that
gcc calls "jc1" as the first step to compile the
A.java file into a temporary blahblah.s file.
However, if I run "jc1" using command line with some
arguments (here I'm using the same arguments that
gcc would use to call "jc1", except the output file
name) as follows:
******
jc1 A.java -fuse-divide-subroutine -fuse-boehm-gc
-fnon-call-exceptions -quiet -dumpbase A.java -g1
-fPIC -o A.s
******
It gives me the following error message:
******
A.java:0: Can't find default package `java.lang'.
Check the CLASSPATH environment variable and the
access to the archives.
A.java:0: confused by earlier errors, bailing out
******
Could anybody tell me what's wrong and/or how to fix
it? I wanted to do this because I was using gdb to
follow "jc1". But I couldn't get into the real stuff
because of the error.
Thanks,
Dachuan