How to setup Java-Home and Path in Ubuntu 12.04 -


this question has answer here:

we new ubuntu.recently changed server os ubuntu 12.04 windows 7 . every 1 have own login details. 1 of college installed open-jdk7. asked him, installed java, suggested switch following directory

su root cd /usr/lib/jvm totally 3 folders there in jvm folder. names are.

java-1.7.0-openjdk-amd64

java-7-openjdk-amd64

java-7-openjdk-common

generally, if install java in windows, 2 folder. 1 folder jdkand points jre.

but, in ubuntu have 3 folders. right?

for conformation, whether installed correctly or not. open terminal. run following 2 commands

java -c java -version both commands working fine.

now want set-up java-home , path users @ same place.because working on application server.

can explain step-by-step.

thanks.

open /etc/profile , write these:

java_home=<yourjavahomedirectory> export java_home path=$path:$java_home/bin export path 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -