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]

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




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


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