Blog Archives

How to install and configure latest Oracle JDK in Fedora

Most parts of this How-To have been taken from http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/

  1. Check Java version
    $ java -version
    java version "1.7.0_05-icedtea"
    OpenJDK Runtime Environment (fedora-2.2.1.fc17.9-x86_64)
    OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
  2. Read the rest of this entry

Advertisements

How to change the Java version/enviroment in Ubuntu

If you have installed multiple Java-Versions and you want to configure your system to use one of them as the default, there is a really simple command to achieve that goal:

1) Check Java version

$ java -version
  • The output should look similar to something like this:
    java version "1.7.0_147-icedtea"
    OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
    OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
    

    As you can see my systems default is set to java-7-openjdk (1.7.0_147-icedtea).

Read the rest of this entry