We&#39;ve run into something similar here. We needed Sun Java 1.4.2 to run on amd64 machines, but Sun didn&#39;t provide amd64 builds before Java 5.<br>
<br>
We hacked /usr/share/java-package/sun-j2re.sh to &quot;detect&quot; 32-bit Java builds as usable for amd64, and installed the 32-bit compatibility libraries that Java needed (so that dh_shlibdeps worked).<br>
<br>
For the record, that&#39;s these ones:<br>
$ aptitude install lib32gcc1 lib32asound2 and ia32libs<br>
<br>
The attached patch adds a &quot;Suggests:&quot; line for those pacakges (probably not the best way to handle it) and allows 32-bit Java builds to be built on amd64.<br clear="all"><br>-- <br>Rob Hunter<br>Ninja for Hire