Ask Your Question

Installing 32 bit OpenJDK JRE on a 64 bit system

asked 2014-03-12 05:34:17 -0500

AlexH gravatar image

updated 2014-03-12 09:51:47 -0500

marcindulak gravatar image

So i require the 32 bit JRE for a java applet that my work uses, this applet annoyingly ONLY works with 32 bit JRE.

In fedora 20 64 bit JRE is installed by default, which is awesome, and installing the icedtea plugin for firefox is really easy. But installing the 32 bit JRE seems almost impossible?

The best i can find in the repos is the i686 version of OpenJDK-1.8-JRE.

I would really prefer not to have to install the JRE from java themselves and instead use the OpenJDK version. I have read lots of guides which given complex instructions on how to boot strap 32 bit libraries into the system, however on Ubuntu 12.04 and 13.10 its trivial to just install them and leave them on the system, the applet picks them up itself.

So the question is, is there a simple way to install the 32 bit version of OpenJDK-1.7-JRE on fedora 20?

edit retag flag offensive close merge delete


Please do not hashes in tags - i removed it - i guess that's something @mether is working on

marcindulak gravatar imagemarcindulak ( 2014-03-12 09:52:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-03-12 07:11:26 -0500

marcindulak gravatar image

You can't have both x86_64 and i686 java-1.7.0-openjdk RPM packages installed due to the conflicting files (files with the same path contained in both packages). You can identify conflicting files by listing the contents of the packages on 32-bit and 64-bit Fedora e.g. rpm -ql java-1.7.0-openjdk

Try to download and unpack the 32-bit RPMS. As an unprivileged user, wget 32-bit RPM directly from and unpack it with rpm2cpio (see ):

mkdir /tmp/java
cd /tmp/java
rpm2cpio $urlroot/java-1.7.0-openjdk-headless-${v}.rpm | cpio -idv
rpm2cpio $urlroot/java-1.7.0-openjdk-${v}.rpm | cpio -idv
rpm2cpio $urlroot/java-1.7.0-openjdk-devel-${v}.rpm | cpio -idv
./usr/lib/jvm/java-1.7.0-openjdk- -version
# result: java version "1.7.0_51"
# OpenJDK Runtime Environment (fedora- u51-b31)
# OpenJDK Server VM (build 24.51-b03, mixed mode)

Depending on what you really need from java this may work or not. You may also run into problems with missing shared libraries - just install the i686 versions as described here

edit flag offensive delete link more


Its a shame this is so involved but this answer is perfect, thanks alot

AlexH gravatar imageAlexH ( 2014-03-12 08:05:50 -0500 )edit

answered 2014-03-12 14:31:46 -0500

deusdara gravatar image


Please see that thread

32-bit Java on 64-bit Fedora 15?

edit flag offensive delete link more

Question Tools


Asked: 2014-03-12 05:34:17 -0500

Seen: 7,423 times

Last updated: Mar 12 '14