Title: Java Install and Path Setup in Ubuntu
1.Follow this for Sun Java Installation:
It helps for checking:
2.Follow this after installation:
3.
If you already know what you want to set JAVA_HOME and CLASSPATH to, you can just run
Code:
$ sudo gedit /etc/environment
JAVA_HOME="/usr/lib/jvm/jdk1.6.0_32"
JRE_HOME="/usr/lib/jvm/jdk1.6.0_32/jre"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME:$JRE_HOME"
http_proxy="http://localhost:80/"
https_proxy="https://localhost:80/"
ftp_proxy="ftp://localhost:80/"
If you want to install openjdk then follow this site
http://openjdk.java.net/install/
JAVA_HOME="/usr/lib/jvm/jdk1.6.0_32"
JRE_HOME="/usr/lib/jvm/jdk1.6.0_32/jre"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME:$JRE_HOME"
http_proxy="http://localhost:80/"
https_proxy="https://localhost:80/"
ftp_proxy="ftp://localhost:80/"
If you want to install openjdk then follow this site
http://openjdk.java.net/install/
No comments:
Post a Comment