Yup, today I’m trying to move to Fedora. Why Fedora?

Since I’m part of ESB Project, I start to learn RHEL because ESB Middleware run under Apache ServiceMix on RHEL 6.x. RHEL is free to download, but you must pay for support.

Installing Fedora

Installing Fedora

Fedora is ‘free version’ of RHEL. It has big community (i will join later). Today is my first time to use Fedora, and I start to installing Java, Eclipse and other application.

Install Java on Fedora

Actually, Java already installed on Fedora. But its only open JDK. In some case, we need to use JDK rather than open JDK. So before we start, you must download JDK rpm from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html (in this blog post, I’m using JDK 7).

Just double click the JDK rpm, you will see:

Screenshot from 20150206110936

Screenshot from 20150206110936

Then, click Install. JDK will installed on your PC but we are not finished yet. We must configure it because if you check on console, we still using open JDK.

Screenshot from 20150206111553

Screenshot from 20150206111553

To change this, firstly you must substitute user to root. Then execute this command:

alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_65/jre/bin/java 200000
Screenshot from 2015-02-06 13_24_53

Screenshot from 2015-02-06 13_24_53

Now, you can choose wich version of java to use. To change it, execute: alternatives –config java. Then you can select which version to use as image above.

Advertisements