Thanks, I didn’t know about the alternatives directory. I’ll give this a try, just as a side question, why would you need to change the JAVA_HOME back to the jre? I thought the JDK contains the jre AND the dev tools, so having JAVA_HOME point to the jdk would still allow applications like libreoffice to run properly?
Hi
Yes, I just wanted it back at where I originally started after finishing the testing, try a complete switch and see what happens, if it all works fine it can be removed and placed in your ~/.profile. My preference is per user rather than system wide…
If you’re using openjdk, despite the name it only is the jre.
The error is saying that you don’t have the “jdk” components installed which means that you need to first identify the “openjdk-devel” packages available to you with the following
zypper se openjdk-devel
Today, the above will likely return two results, one for openjdk-devel version 7 and the other for version 8.
Install either or both packages displayed
zypper in* package1 package2*
In openjdk’s case, when you install the “devel” packages, they will automatically link to and extend the functionality of your existing “update-alternatives” options, so you won’t see anything different than without the “devel” packages installed. But, you are now ready to select whichever java package you wish if you have multiple java installed (like Oracle Java or different versions of openjdk). When integrated with “update-alternatives” your selected Java should also automatically set the “HOME” environmental variable, no need to set on your own.
update-alternatives --config java
If you did the above, you shouldn’t have a problem.