How to replace OpenJDK with Sun Java in Ubuntu
Not quite a programming article, but I stumbled in this problem today so I thought it's worth a note.
After you install sun java from the partners repository, you'll see that by using java -version it still shows that it's using OpenJDK.
To fix this you can run:sudo update-alternatives --config java
That will allow you to choose the default java virtual machine.
Add new comment