搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

choose java version

  • 1 回覆
  • 1 有這個問題
  • 1463 次檢視
  • 最近回覆由 fredjm31

more options

Hello everybody.

On Linux CentOS 7.1.1503, I have Firefox 31.4.0 and Java 1.7 installed by default. I need to have Java 1.6 used by Firefox.

I installed Java 1.6 rpm. As suggested here : - https://wiki.centos.org/HowTos/JavaRuntimeEnvironment (chapter Java x86_64 JRE and plugin) In - /usr/lib64/mozilla/plugins/ I created a symlink that points to - /usr/java/latest/lib/amd64/libnpjp2.so (located in JRE 1.6).

When I display "about:addons", Java 1.6 is listed, BUT, when a load a simple HTML page (see code below) aimed to display Java version _really_ used, 1.7 is displayed.

Thanks for advance for your help. Frederic.

--- HTML code ---


<title> A Simple Program </title> Java Version : <applet code="JavaVersion.class" height="75" width="250"> </applet>


--- JavaVersion.java ---

import java.applet.Applet; import java.awt.Graphics; public class JavaVersion extends Applet {

   public void paint(Graphics g) {
       String version = System.getProperty("java.version");
       g.drawString(version, 10, 10);
   }

}

被選擇的解決方法

I found the solution. I (also) had IcedTeadPlugin, which actually points to JRE 1.7. So, it was loaded instead of JRE 1.6.

從原來的回覆中察看解決方案 👍 0

所有回覆 (1)

more options

選擇的解決方法

I found the solution. I (also) had IcedTeadPlugin, which actually points to JRE 1.7. So, it was loaded instead of JRE 1.6.