Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

choose java version

  • 1 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 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" WIDTH=250 HEIGHT=75> </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);
   }

}

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 --- <HTML> <HEAD> <TITLE> A Simple Program </TITLE> </HEAD> <BODY> Java Version : <APPLET CODE="JavaVersion.class" WIDTH=250 HEIGHT=75> </APPLET> </BODY> </HTML> --- 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.