Replacing OpenJDK with JRE 6 in Arch Linux

In Arch Linux Wiki page, it mentioned that OpenJDK is nearly perfect which we need not to install Oracle proprietary Java. But sadly to know, there are some Java applet which needs Java Runtime Environment version 6 instead of 7. That means, neither OpenJDK nor Oracle proprietary Java 7 works.

Therefore, I need to replace the jdk7-openjdk, jre7-openjdk, and jre7-openjdk-headless with AUR jre6 and jdk6. Besides that, icedtea-web-java7 is also no needed.

However, in Arch Linux, if doing replacement, that means we need to remove the unwanted packages. Removing the packages, because of the dependencies, all the other packages depend on them will also need to be removed. Yet, this problem can be solved with some tricks in pacman,

sudo pacman -Rndd jdk7-openjdk jre7-openjdk jre7-openjdk-headless icedtea-web-java7 java-rhino
#Use -dd to ignore dependencies check

As a result, only those packages will be removed. The other packages depend on them will not be removed, such as jedit. By this, we can install the jre6 and jdk6 after that.

Besides that, we can check whether missing dependencies with “testdb” command from pkgtools package. It will be helpful if we remove some of the packages without dependencies check.

Now, the Java applet is working.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s