Now I must admit that I'm very much surprised. For about a year I was almost sure that it's impossible to install JDK 1.4.2 from Sun on amd64 arch. IIRC all that emerge was telling me, assured me that there are not enough compatibility libraries which would allow me to run 32-bit Java.
Now it has changed. I unmasked "-*" sun-jdk-1.4.2.10 and it emerged well! Better yet, it worked! And now I'm happy (I think
Two things motivated me:
- some good man created an emul-linux-x86-java package (based on 32-bit Blackdown Java, but anyway)
- I wanted desperately to see one particular site, completely flash-based
- HOWTO_AMD_64#Macromedia_Flash_and_Java_Under_AMD64_with_firefox
- HOWTO_Install_firefox_with_java_on_amd64
So, eager to try, I unmerged first all the JDKs and JREs, including emul-linux-x86-java (I needed that step because I wanted firefox-bin to use only Java 1.4.2_10 plug-in, and I added back other 64-bit JDKs/JREs later). Then came the fun part. I added:
Code: Select all
=dev-java/sun-jdk-1.4.2* -*Code: Select all
# emerge -av =sun-jdk-1.4.2*Code: Select all
# java-config -L
# java -versionI added the symlink in the firefox-bin plugin directory, started firefox-bin and went to the Test Java Virtual Machine site. I was assured once again that the java plug-in worked correctly. Installing flash plug-in as described on gentoo-wiki.com was a breeze.
Then I emerged back 64-bit blackdown-jre and blackdown-jdk, as well as 64-bit sun-jdk-1.5.0.06. This way I restored the previous state of my system. Now my 64-bit firefox uses blackdown-jre plug-in, while 32-bit firefox-bin uses sun-jdk-1.4.2.10 plug-in + netscape-flash. And the life is bright again.
All in all, this proved one thing to me: that 32-bit emulation in Gentoo works REALLY well.
But what surprizes me the most is that unmasking some 32-bit "-*" packages may actually work on amd64. This makes me wonder what other "unsupported on amd64/incompatible" 32-bit packages might be forced to work as well?
Disclaimer:
Of course, your mileage may vary or it might even break something in your system...
Don't blame me for it - the above worked for me and for me only (so far).
Cheers,
Sir No

