Install Java on Cloudera or VM | IndianTechnoEra - IndianTechnoEra
Latest update Android YouTube

Install Java on Cloudera or VM | IndianTechnoEra

Installation of java on Unix/Linux machine, Installation of java on Cloudera or Unix/Linux machine | Big Data Practical | IndianTechnoEra


Installation of java on Cloudera  | Big Data Practical | IndianTechnoEra

Aim: Installation of java on Unix/Linux machine. 

Installing java on Linux machine.

Step 1: Verify the existence of java in your system using 

jav

javac

java –version


Step 2:  For online installation of java 1.8: 

sudo apt -get install default -jre


Step 3: if already installed please check the version of java.

If everything works fine it will give you the following output.




Step 4: If want to install oracle JDK customized/manual then follow these steps:

Download JDK tar file

Move extract file to destination(user/lib/jvm/jdk1.7xxxxxx)

Set  .bashrc file 

do following

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8/bin/java" 1 

sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8/bin/javac" 1

sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8/bin/javaws" 1



Correct the file ownership and the permissions of the executables:


sudochmoda+x /usr/bin/java

sudochmoda+x /usr/bin/javac

sudochmoda+x /usr/bin/javaws

sudochown -R root:root/usr/lib/jvm/jdk1.8


Check which java is functional and path of java

sudo update-alternatives --config java



Output:

 






Post a Comment

Feel free to ask your query...
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.