Hello,

You can do so by setting the PATH environment variable in .bash_profile (if
you are using the bash shell).
You can find your .bash_profile at $HOME/.bash_profile path.

Instead of appending the $JAVA_HOME/bin to PATH variable, you can append to
the PATH.

Thus, if your .bash_profile entry is PATH=$PATH:JAVA_HOME/bin change it to
PATH=$JAVA_HOME/bin:$PATH.

Hope you will find the solution.

Regards,
-- 
Avik Mitra
1st Year M.Tech Student
School of Mobile Computing and Communication
Jadavpur University, Kolkata

Reply via email to