Ask Your Question

How to install JDK6 in Fedora 20

asked 2014-11-24 23:09:34 -0500

Gaurav Dighe gravatar image


I have Fedora20. I have installed: 1. Oracle JDK7

But I am unable to install JDK. I tried below command

sudo yum install java-1.6.0-openjdk-devel

But I am getting - "Package not found".

Please assist

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-25 01:42:11 -0500

kdg1955 gravatar image

Java 6 is no longer present in F20. When you use the java7 or java8 compiler, you can specify the required version.

$> javac -source 1.6


$> javac -source 6
edit flag offensive delete link more


see also option -target <version> to generate class files that target a specified version of the VM (runtime target). Class files will run on the specified target and onlater versions, but not on earlier versions of the VM. Valid targets are 1.1, 1.2, 1.3, 1.4, 1.5 (also 5), 1.6 (also 6), and 1.7</version>

tonioc gravatar imagetonioc ( 2014-11-25 14:00:41 -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: 2014-11-24 23:09:34 -0500

Seen: 795 times

Last updated: Nov 25 '14