Search This Blog

Friday 9 November 2018

Setting Java Home in Linux

Edit the .bashrc or .bash_profile file and add the below line:

[$] vi .bashrc

export JAVA_HOME="Enter_the_Java_Home_Directory"
e.g: export JAVA_HOME=/app/JDK/jdk1.8

Here is the complete steps:

After updating it, just source the file so it would be effective immediately and you could verify with the below command

[$] source .bashrc

[$] echo $JAVA_HOME


No comments:

Post a Comment

What is Oracle Database Link and How to create database link (DB Link)

Recent Posts