Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 16.04: after installation, 'java -version' still links to OpenJDK #44

Open
fdiotalevi opened this issue Aug 25, 2016 · 0 comments

Comments

@fdiotalevi
Copy link

After executing the role on Ubuntu 16.04,

java -version

returns

openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

That is because /usr/lib/jvm/default links to the wrong version of java

~# ls -la /usr/lib/jvm/default-java
lrwxrwxrwx 1 root root 24 Feb 25 20:41 /usr/lib/jvm/default-java -> java-1.8.0-openjdk-amd64

As a workaround I have to remove the incorrect link and create the right one as shown at https://github.com/fdiotalevi/my-ansible-playbooks/blob/master/dev-machine/03-java-stuff.yml#L6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant