Monday, June 26, 2017

How To Install Java on Ubuntu with Apt-Get & OEL ,RHEL with yum or manually – Magazie

How To Install Java on Ubuntu with Apt-Get & OEL ,RHEL with yum or manually – Magazie

sudo apt-get update

java -version

To install OpenJDK 7, execute the following command:

sudo apt-get install openjdk-7-jre

sudo yum install openjdk-7-jdk

sudo apt-get install oracle-java6-installer

sudo apt-get install oracle-java7-installer

sudo apt-get install oracle-java8-installer

sudo update-alternatives –config java

It will usually return something like this if you have 2 installations

No comments:

Post a Comment

Oracle Database 19c Installation on Oracle Linux 7

Pre-installation settings before installing Oracle Database 19c SELinux If the OS is to be used for an Oracle installation, it is ...