You are not logged in.

#1 2012-03-29 22:20:37

fowler
Member
Registered: 2009-01-26
Posts: 152

[SOLVED] Jdk 64bit along side of Jdk 32bit...

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

#2 2012-03-30 03:23:34

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] Jdk 64bit along side of Jdk 32bit...

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

#3 2012-04-02 21:22:28

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: [SOLVED] Jdk 64bit along side of Jdk 32bit...

Great, that worked, good enough I guess.  The only problem would be window decorations don't match.

Offline

#4 2012-04-03 23:00:25

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] Jdk 64bit along side of Jdk 32bit...

Please mark the post as [SOLVED] - that'll save your fellow archers some time when encountering the same problem.

Offline

#5 2012-04-04 16:05:37

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: [SOLVED] Jdk 64bit along side of Jdk 32bit...

I know this is somewhat of a separate issue, but did you get you windows decorations integrated with the various versions of jdk?

Offline

#6 2012-04-05 02:37:51

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] Jdk 64bit along side of Jdk 32bit...

I may be a little dense here, but are you talking about Java Look and Feel (LAF)?

Offline

#7 2012-04-06 17:35:39

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: [SOLVED] Jdk 64bit along side of Jdk 32bit...

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

Board footer

Powered by FluxBB