I typed:
It's says alternatives --install needs link name path priority |
||||
Are you leaving a space between the -- and the word install? if so, don't - it needs to be
The quotes should not be necessary since none of the elements have embedded spaces - although they shouldn't do any harm. |
|||
java
group in/etc/alternatives
). AFAIK the only thing that must pre-exist is the path component i.e./usr/lib/jvm/jdk1.8.0/bin/java
- but note that (as posted in your question) you have a space in yours - hence my 1st comment. – steeldriver Jul 5 '14 at 16:58--
and the wordinstall
? if so, don't - it needs to be--install
. Also the quotes should not be necessary, justsudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0.05/bin/java 1
– steeldriver Jul 5 '14 at 17:35