Giving Permisson & setting JAVA_HOME in unix

for giving permisson


 chmod u+x processName


Set JAVA HOME in UNIX in different shell


To set JAVA_HOME, do one of the following:


  • For Korn and bash shells, run the following commands:

    export JAVA_HOME=jdk-install-dir

    export PATH=$JAVA_HOME/bin:$PATH

  • For the bourne shell, run the following commands:

    JAVA_HOME=jdk-install-dir

    export JAVA_HOME

    PATH=$JAVA_HOME/bin:$PATH

    export PATH

  • For the C shell, run the following commands:

    setenv JAVA_HOME jdk-install-dir

    setenv PATH $JAVA_HOME/bin:$PATH

    export PATH=$JAVA_HOME/bin:$PATH

Comments

Popular posts from this blog

Conversion from Clob To String in java and Vice versa

Portable Java 8/ JDK8 setup without admin rights

Multi Threading , Producer consumer problem in Java