How to Run JDK in Fedora
If you want to develop Java applications on Fedora, you'll need to have the Java Development Kit installed. The JDK does not run on its own, so you will also need to have a Java-compatible software development kit or integrated development environment installed. In Fedora, the default Java implementation is the OpenJava project, sponsored by Oracle, and you can install the OpenJDK package and NetBeans IDE without having to add any repositories. Together, they will allow you to run the JDK and develop Java applications.
Instructions
-
-
1
Open a terminal, type the following command and then press "Enter":
su -c "yum install java-1.7.0-openjdk"
-
2
Press "Y" when prompted. This installs the OpenJDK and may take some time to finish.
-
-
3
Type "su -" and press "Enter."
-
4
Type "yum install netbeans" and press "Enter." Press "Y" when prompted.
-
5
Type "netbeans" and press "Enter" to run the program after it installs.
-
1
Tips & Warnings
If you prefer, you can use other Java platforms and other development programs. However, you will need to either add repositories or download the tarballs in your browser to install them. If you want to use a different Java implementation, you will also need to reconfigure your Java settings and reboot your computer.