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

Jeff Sturm jsturm@one-point.com
Mon Sep 24 13:44:00 GMT 2001


On 2001年9月24日, Dachuan Yu wrote:
> ******
> gcj -share -fPIC -o A.so A.java
> ******
> It works and gives me the output A.so file.

...
> ******
> 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'.

This means jc1 cannot find libgcj.jar. Since you did not specify a
classpath, it searches in a default location (${prefix}/share/libgcj.jar)
which is hardcoded into the executable.
Is there any chance you are running the wrong jc1? Could there be more
than one GCC installed on your system?
When I am debugging jc1, I generally start with "gcj -v ..." and
copy/paste the entire command, along with the path to jc1.
Jeff


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /