0

I have follow all the post but unable to solve this problem:

By mistake I deleted the /usr/bin/java. After installing many time m still getting this error.

After running update-alternatives --display java I'm getting:

update-alternatives: error: no alternatives for java
David Foerster
  • 36,890
  • 56
  • 97
  • 151

1 Answers1

1

In a terminal, run the following:

update-java-alternatives -l | awk '{ print $1; }'

Pick one of the listed options, and run:

sudo update-java-alternatives -s the-option-you-chose
Chai T. Rex
  • 5,323