This is the mail archive of the java@gcc.gnu.org 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]

jc1: Can't find default package 'java.lang'


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


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