Skip to content

johannes-riesterer/java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

#Installing Oracle-Java

##Linux

Open a terminal and check what kind of operating system you are running. Type in

uname -m

The output:

  • x86_64 stands for 64 bit kernel
  • i686 stands for 32 bit kernel

Corresponding to the type of your operating system, download the file jdk-newest-version.tar.gz from Oracle. Linux x64 is for a 64 bit kernel and x86 for a 32 bit kernel. Alt text

In what follows, please substitute jdk-newest-version with the appropriate filename!

Create the directory /opt/jdk. Therefore type in the command

sudo mkdir /opt/jdk

and enter your password as asked for.

Extract the downloaded file jdk-newest-version.tar.gz to the created folder /opt/jdk:

sudo tar -zxf jdk-newest-version.tar.gz -C /opt/jdk

You will find the extracted files in /opt/jdk/jdk-newest-version.

Set oracle-jdk as the default java-virtual-machine:

sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk-newest-version/bin/java 100
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk-newest-version/bin/javac 100

Check your installation:

java -version

The output should look like

Java version "1.8"
    Java(TM) SE Runtime Environment (build 1.8)
    Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) 

About

howto install Oracle-java on a debian system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published