Ask Your Question

How to get openjdk 1.6 for fedora 17 or 18?

asked 2013-01-30 16:50:08 -0500

erik gravatar image

updated 2013-01-30 16:53:33 -0500

I want to install OpenJDK 1.6 in Fedora 17 or Fedora 18. However I only see OpenJDK 1.7 as an install option when I run yum search openjdk. How can I get OpenJDK 1.6 in Fedora 17/18?

edit retag flag offensive close merge delete


Out of curiosity, why doesn't the supported version of the OpenJDK work for you?

randomuser gravatar imagerandomuser ( 2013-02-03 00:17:43 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-01-30 16:51:29 -0500

erik gravatar image

updated 2013-02-02 05:14:43 -0500

It is possible to use Openjdk 1.6 from Fedora 16. Use this command:

yum install java-1.6.0-openjdk --releasever=16 --nogpgcheck

(--nogpgcheck because yum complains of not having the key for Fedora 16, maybe there are better ways to solve this)

But this shows, that java-1.7.0-openjdk obsoletes java-1.6.0-openjdk and skips installation. And it shows that the package xorg-x11-fonts-Type1 is needed. So I did

yum install xorg-x11-fonts-Type1

and then I used the openjdk package which yum downloaded but refused to install because of the obsoletes warning

rpm --nodeps -ihv /var/cache/yum/x86_64/16/updates/packages/java-1.6.0-openjdk-

(--nodeps for overriding the obsoletes warning)

Now I have both java 1.6 and java 1.7 on my system. Java 1.7 is my default. And Java 1.6 is in /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java.

PS: There won't be any conflicts when you install both 1.7 and 1.6. The reason for removing 1.6 from Fedora 17 was, that OpenJDK6 will no longer get security updates after November 2012.

PS: Please vote up, if you liked my answer.

edit flag offensive delete link more


Thanks for the solution.

AP gravatar imageAP ( 2013-05-21 02:53:15 -0500 )edit

you could also download the rpm package with yumdownloader java-1.6.0-openjdk --releasever=16, and then install w/rpm as mentioned.

ILMostro gravatar imageILMostro ( 2015-01-26 21:17:04 -0500 )edit

Thanks for the solution, it worked. Thanks to @ILMostro too - that way it installs the latest version, which is In addition, if you have unofficial repos that do not support Fedora 16 or just want to make the operation faster, run

yumdownloader --disablerepo=\* --enablerepo=updates --releasever=16 java-1.6.0-openjdk
bob gravatar imagebob ( 2015-03-19 17:30:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-01-30 16:50:08 -0500

Seen: 8,587 times

Last updated: Feb 02 '13