Installing Java
step 1: Open Synaptic
step 2: Type sun in search box
step 3: select sun-java6-jre, sun-java6-jdk, sun-java6-fonts, sun-java6-bin
Setting Java path :
step 1: "which java" command gives the place where its installed , /usr/bin/java
step 2: open bashrc file and add java path, 
        #nano ~/.bashrc
        add the java path,
        export JAVA_HOME=/usr/lib/jvm/java-6-sun
        export PATH=$PATH:$JAVA_HOME/bin
step 3:Execute the bashrc file
       #source ~/.bashrc
step 4:check if java is compiling successfully,
      #javac
      This command should leave all the details of successful compilation
 
 
No comments:
Post a Comment