你能给我一些建议吗?我尝试安装 Java 8u51 插件。但我无法激活它。请看我在终端中得到的结果:
$ java -version
bash: /usr/bin/java: cannot execute binary file: Exec format error
$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1071 auto mode
1 /opt/java/32/jdk1.8.0_51/bin/java 1 manual mode
2 /opt/jre/jdk1.8.0_51/bin/java 1000 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 manual mode
4 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1071 manual mode
您能否告诉我如何才能让我的 Java 在 Firefox 上运行?
答案1
以这种方式安装Oracle java。
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer