Forum Discussion

Pavoletto's avatar
Pavoletto
New Contributor
9 years ago

Specify Java installation on mockservicerunner.sh

Hi everyone,   I have two java installation (jdk6 and jdk7) in a linux environment, with "$PATH" variable pointing to jdk 6 installation. I don't have the credentials to change the "$PATH" variabl...
  • nmrao's avatar
    9 years ago

    I believe that, any user can use his own required path. How is it different in your case?
    You can just use below commands to change, when you login to your session. Note that, this will be applicable only for that current session. If you want them to be permanent i.e., available all the time on login, then you may set them in $HOME/.profile file

    export JAVA_HOME=/set/it/to/jdk7
    export PATH=$JAVA_HOME/bin:$PATH

    You are done.