I use to install and configure Java with update-alternatives; however,
there is an issue that bothers me. I put java under /usr/lib64/jvm;
after that, I configure it using update-alternatives (options --install
and then --config). The problem is: the update-alternatives don’t create
a symbolic link /usr/lib64/jvm/java; so, the /etc/profile.d/alljava.sh
doesn’t works, i.e., doesn’t set java environment variables (e.g.
JAVA_HOME, JRE_HOME, etc.). I need to create it manually.
Am I doing something wrong?
Thanks,
Carlos Camargo