This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libjava issues with arm-linux-gcj from arm-linux-gcc 3.3.2
- From: Tom Tromey <tromey at redhat dot com>
- To: Nathan M <ngmlinux at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: 16 Aug 2005 09:25:42 -0600
- Subject: Re: libjava issues with arm-linux-gcj from arm-linux-gcc 3.3.2
- References: <793519105081520585b53839b@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Nathan" == Nathan M <ngmlinux@gmail.com> writes:
Nathan> While trying to use the arm-linux-gcj cross compiler included in
Nathan> compulab's arm-linux-gcc 3.3.2 tools, I get the following error
Nathan> message:
Nathan> [root@localhost java_xcompile]# arm-linux-gcj HelloWorld.java
Nathan> HelloWorld.java:0: error: Can't find default package `java.lang'.
Nathan> Check the CLASSPATH environment variable and the access to the
Nathan> archives
Usually this means that gcj was built and installed, but libgcj was
not.
Nathan> [root@localhost libjava]# ./configure --enable-threads=posix
Nathan> --prefix=/usr/local/arm/3.3.2/bin/
It sounds as though you are trying to build libgcj separately, using
an installed gcj. Is that right? That is not a supported thing to
do. In particular configure is not set up for this. Instead you have
to build the compiler (including libgcj) in its entirety.
Tom