DEV Community

Discussion on: How to change your Java and javac version on Ubuntu / Linux

Collapse
rajmohan6268 profile image
rajmohan6268

if u still return error try with sudo and follwing command
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac