Monday, November 22, 2010

JAVA CLASSPATH SETTING IN UBUNTU

sudo gedit etc/environment

enter your password

PATH=".:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" (already exist)
just add below two lines


here i am using java6

JAVA_HOME="/usr/lib/jvm/
java-6-openjdk"

CLASSPATH=".:/usr/lib/jvm/java-6-openjdk/lib"


save that file.

1 comment: