You are not logged in.
What is the best way to install jdk 64bit along side of a 32bit version. The wiki doesn't say anything about it. I have both the oracle jdk and jre from the aur installed as of now.
Last edited by fowler (2012-04-04 16:04:43)
Offline
I've struggled with a similar problem in the past and this is what I've been doing for a while now: In my case, I don't need 32/64 bit different jdks, but I need jdk4/5/6/7 all on one machine. First, decide what your "default" JDK should be. In my case, it's the one that I want to keep updating via pacman: "jdk7-openjdk". All others, I simply go to oracle.com and download the .bin file (not the RPM, you don't want that complication). Then, as root, copy the file to /opt and run the .bin file. This will extract that jdk into /opt. I rename the folder to simply javaX, where X is 4, 5, 6, etc. In your case - call it javaX-32 or javaX-64, whatever.
To use the specific JDK, almost all apps that use the JDK can be configured to use a specific JDK via configuration files, so simply edit those config files and point them to /opt/javaX. Worst case, set the JAVA_PATH or the PATH environment variable.
To use a specific JRE for browser plugins, go to the /usr/lib/mozilla/plugins folder and delete the symlink you see there for IcedTeaPlugin.so (open source) or libnpjp2.so (Oracle/Sun) and symlink your wanted plugin from the /opt/javaX/jre/lib or /opt/javaX/jre/lib/amd64 folder.
Of course, you'll have to update all the JDKs you installed in /opt yourself, but I find this much less headaches than trying to install various Java's through pacman / AUR...
Offline
Great, that worked, good enough I guess. The only problem would be window decorations don't match.
Offline
Please mark the post as [SOLVED] - that'll save your fellow archers some time when encountering the same problem.
Offline
I know this is somewhat of a separate issue, but did you get you windows decorations integrated with the various versions of jdk?
Offline
I may be a little dense here, but are you talking about Java Look and Feel (LAF)?
Offline
I'm talking about windows border around the java application. With this solutions I get a generic close/minimize bar at the top which isn't the same as the theme of my de (like gnome).
Offline