做过:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 1
然后:
sudo update-alternatives --config java
但我明白:
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/jre1.7.0/bin/java
Nothing to configure.
和
bash: /usr/bin/java: No such file or directory
答案1
我认为我的朋友给了我错误版本的 Ubuntu。使用 64 位 jre 现在出现以下问题:
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)