[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot build with gcj on amd64



On Thu, May 31, 2007 at 04:20:50PM +0200, Marcus Better wrote:
> Suddenly I get the infamous "java.lang.Object cannot be resolved" when building on amd64. Any ideas?
> 
> I'm not using any chroots or anything.
> 
> ~$ /usr/lib/jvm/java-gcj/bin/javac Test.java
> ----------
> 1. ERROR in Test.java (at line 1)
>         public class Test
>         ^
> The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

Is this an amd64 machine with a 32-bit Debian version installed and
64-bit kernel running? If thats the case install the linux32 package
and run it.

The problem is that some parts of gcj are installed in
/usr/lib/gcc/i486-linux-gnu/4.1 (on my machine). On amd64 this dir is
named differently. gcj always uses what

  dpkg-architecture -qDEB_BUILD_GNU_TYPE

returns. When using the linux32 wrapper on an amd64 machine you will get
"i486-linux-gnu"


Cheers,
Michael
-- 
 .''`.  | Michael Koch <konqueror@gmx.de>
: :' :  | Free Java Developer <http://www.classpath.org>
`. `'   |
  `-    | 1024D/BAC5 4B28 D436 95E6 F2E0 BD11 5923 A008 2763 483B



Reply to: