What’s the proper way to make JAVA_HOME point to a JDK instead of a JRE. I know about update-configurations but all those alternatives point to JREs. If I set it explicitly in .bashrc then it won’t get updated when patches are installed.
well JAVA_HOME is just a system variable which can be defined in your .profile/.bash_profile file. As soon as you launch the application/executable and is running, it might be that the variable is redefined in it and then you have to open the executable/shell/application file and search for the variable and if you have rights change it to the value you want, in your case jdk instead of jre location(you have to know the location of the jre). Is this for a WebLogic instalation? in that case I can give you more details, so just ask.
Thanks. I see that alljava.sh will always set JAVA_HOME to the jdk if it exists. In my case, I think there was an explicit leftover setting in my .bashrc that was pointing it to the jre. Once I cleaned that up, I was picking up the jdk as expected.
The path to java on openSuse seems breathtakingly convoluted. It seems like the update-configuations mechanism should list jdk’s and jre’s and let you choose. In my case I think I had explicitly pointed it to the jre to address an obscure eclipse issue from a few releases ago.
Hi
Glad you found out the issue, you may also look at modifying ~/.profile
instead of ~/.bashrc as well so when you login your variables will be
available.