Re: cannot build with gcj on amd64
FWIW, I'm also seeing something like this, building inside a pbuilder
environment on x86 for a package that uses java-gcj-compat-dev.
...
javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] WARNING: -classpath option could not be passed to the VM.
Faking it with
[javadoc] WARNING: System.setProperty("java.class.path",
"/tmp/buildd/libfontbox-java-0.1.0.dfsg/classes:/tmp/buildd/libfontbox-java-0.1.0.dfsg");
[javadoc] Loading classes for package org.fontbox.afm...
[javadoc] Loading classes for package org.fontbox.cmap...
[javadoc] Loading classes for package org.fontbox.encoding...
[javadoc] Loading classes for package org.fontbox.pfb...
[javadoc] Loading classes for package org.fontbox.ttf...
[javadoc] Loading classes for package org.fontbox.util...
[javadoc] Constructing Javadoc information...
[javadoc] WARNING: Cannot locate class java.lang.Object referenced in
class org.fontbox.afm.AFMParser
...
tony
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
>
> ~$ dpkg -l java-gcj-compat-dev ecj\* libgcj7-1
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> ||/ Name Version Description
> +++-================-================-================================================
> ii ecj 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii ecj-bootstrap 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii ecj-bootstrap-gc 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii ecj-gcj 3.3~M7-2 standalone version of the Eclipse Java compiler
> ii java-gcj-compat- 1.0.76-2 Java runtime environment with GCJ
> ii libgcj7-1 4.1.2-8 Java runtime library for use with gcj
>
> Marcus
Reply to: