Provavelmente, a versão 1.7.17 exata é diferente agora e o jdk1.7.0_17
não existe, portanto, use o comando interativo para alterar a alternativa java
ou javaws
.
$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 auto mode
* 1 /usr/lib/jvm/j2re1.7-oracle/bin/java 316 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
Press enter to keep the current choice[*], or type selection number: 1
$ sudo update-alternatives --config javaws
There are 3 choices for the alternative javaws (providing /usr/bin/javaws).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws 1071 auto mode
1 /usr/lib/jvm/j2re1.7-oracle/bin/javaws 316 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws 1061 manual mode
3 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws 1071 manual mode
Press enter to keep the current choice[*], or type selection number: 1
É muito menos provável que cometa erros com isso. :)