Set java path on Ubuntu meachine

open Vi /etc/bash.bashrc


and then append the following lines


export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin

3 comments:

izdelava trgovine said...

Just what i was looking for! It was a real pain installing without package :)

Ajith said...

Great article.
It was very informative, Thanks for sharing!

iteducationcentre said...

That was amazing blog. Thanks for sharing.
Linux classes in Pune