Set JAVA_HOME / PATH variables In Linux OS
In my last post we discussed about how to install JDK in Ubuntu platform. You installed it means, it looks lyk u took interest in Linux.. Its good to see. U knw actually windows sucks, when u try linux distribution u ll get it (Now u r dat much of smart than i m expecting, because u r Linux user :) ). Now we discuss about _ How to set JAVA_HOME and PATH? And here is the answer step by step 1. ~/.bash_profile this file helps u to set environment. Open Terminal window. (U installed JDK means u knw how to open it, m i right !) 2. Open file ~/.bash_profile using following line in your teminal_ rohantu@ubuntu:~ $ vi ~/.bash_profile 3. Set JAVA_HOME as follows export JAVA_HOME=<java-path> in that file you can use below line for JAVA_HOME_ export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java 4. Set PATH in same file as follows: export PATH=$PATH:/usr/java/jdk1.5.0_07/bin 5. And you finished it. b