This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: jc1: Can't find default package 'java.lang'
- To: Dachuan Yu <dachuan dot yu at yale dot edu>
- Subject: Re: jc1: Can't find default package 'java.lang'
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Mon, 24 Sep 2001 17:31:02 -0400 (EDT)
- cc: java at gcc dot gnu dot org
On Mon, 24 Sep 2001, 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