Force Internet Explorer to use a specific Java Runtime Environment install?
Asked Answered
P

8

48

When viewing someone else's webpage containing an applet, how can I force Internet Explorer 6.0 to use a a particular JRE when I have several installed?

Parallelepiped answered 16/9, 2008 at 11:7 Comment(2)
What about for JRE 1.4? There are no such things as c:\java\jdk1.4.2_07\jre\bin\jpicpl32.exe or javacpl.exe..Toot
@Toot See Scott Bennett-McLeish's answer below - in 1.4 it is called jpicpl32.exeDetta
P
-1

If you mean when you are not the person writing the web page, then you could disable the add ons you do not wish to use with the Manage Add-Ons IE Options screen added in Win XP SP2

Pendent answered 16/9, 2008 at 12:29 Comment(4)
This doesn't seem to solve the problem at all -- all you can do here is enable or disable Java. Or am I missing something?Kenna
It depends on which versions of java (and plugin) you have installed. I'd hope this answer becomes obsolete as Sun improves the situation. IE is also changing... IE7 lets you show "Add-ons that have been used by Internet Explorer". My PC shows clearly different versions of the same plugin.Pendent
@StephenDenne, Why don't you delete this answer?Myungmyxedema
This answer does not solve the problem for me either.Rurik
K
73

First, disable the currently installed version of Java. To do this, go to Control Panel > Java > Advanced > Default Java for Browsers and uncheck Microsoft Internet Explorer.

Next, enable the version of Java you want to use instead. To do this, go to (for example) C:\Program Files\Java\jre1.5.0_15\bin (where jre1.5.0_15 is the version of Java you want to use), and run javacpl.exe. Go to Advanced > Default Java for Browsers and check Microsoft Internet Explorer.

To get your old version of Java back you need to reverse these steps.

Note that in older versions of Java, Default Java for Browsers is called <APPLET> Tag Support (but the effect is the same).

The good thing about this method is that it doesn't affect other browsers, and doesn't affect the default system JRE.

Kenna answered 10/11, 2008 at 11:27 Comment(4)
In JRE 7.25 control panel, under "Default Java for Browsers", Microsoft Internet Explorer is checked and also greyed out so I can't change it.Soccer
I got Java 7 to allow IE to run Java 6 (must have both JRE7 and JRE6 installed first) by lowering Security to Medium (in the Java 7 Control Panel) and then disabling all Java 7 related add-ons in IE (make sure to select Show: All add-ons, and not just currently loaded ones) and leaving the Java 6 plug-ins enabled.Soccer
Also, Windows7 comes with IE8(32-bit) and IE8(64-bit). I mostly use the 32-bit IE and had to install 32-bit JRE. the 64-bit JRE is not detected by IE8(32-bit)Calipee
Baodad--you can change this in the registry under HKLM\Software\JavaSoft\Java Plugin\<version>\UseJava2IExplorer --set it to 1Bennett
T
22

I have the same issue today and I concur with Jack Leow. Basically, on Windows XP, I had to go to Control Panel > Java and then:

  1. Java tab
  2. Click on "View" button
  3. Enable only the JRE I want (i.e. JRE 1.5.x and keep 1.6.x disabled)
  4. Restart IE
  5. Load applet page in IE
  6. Et voila, it's loading the correct JRE version!
Tuchun answered 22/6, 2010 at 4:49 Comment(1)
Of course the biggest problem is that you can't really run different JRE versions at the same time in the same browser.Tuchun
B
4

For the server-side solution (which your question was originally ambiguous about), this page at sun lists one way to specify a JRE. Specifically,

<OBJECT 
  classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
  width="200" height="200">
  <PARAM name="code" value="Applet1.class">
</OBJECT>

The classid attribute identifies which version of Java Plug-in to use.

Following is an alternative form of the classid attribute:

classid="clsid:CAFEEFAC-xxxx-yyyy-zzzz-ABCDEFFEDCBA"

In this form, "xxxx", "yyyy", and "zzzz" are four-digit numbers that identify the specific version of Java Plug-in to be used.

For example, to use Java Plug-in version 1.5.0, you specify:

classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"
Bundesrat answered 16/9, 2008 at 11:20 Comment(0)
O
1

I'd give all the responses here a try first. But I wanted to just throw in what I do, just in case these do not work for you.

I've tried to solve the same problem you're having before, and in the end, what I decided on doing is to have only one JRE installed on my system at a given time. I do have about 10 different JDKs (1.3 through 1.6, and from various vendors - Sun, Oracle, IBM), since I do need it for development, but only one standalone JRE.

This has worked for me on my Windows 2000 + IE 6 computer at home, as well as my Windows XP + Multiple IE computer at work.

Ophiology answered 10/11, 2008 at 11:48 Comment(0)
L
1

As has been mentioned here for JRE6 and JRE5, I will update for JRE1.4:

You will need to run the jpicpl32.exe application in the jre/bin directory of your java installation (e.g. c:\java\jdk1.4.2_07\jre\bin\jpicpl32.exe).

This is an earlier version of the application mentioned in Daniel Cassidy's post.

Lutyens answered 4/10, 2010 at 7:20 Comment(0)
P
0

Use the deployment Toolkit's deployJava.js (though this ensures a minimum version, rather than a specific version)

Pendent answered 16/9, 2008 at 12:21 Comment(0)
E
0

You can specify the family of JRE to be used. http://www.oracle.com/technetwork/java/javase/family-clsid-140615.html

Elswick answered 23/10, 2014 at 10:17 Comment(0)
P
-1

If you mean when you are not the person writing the web page, then you could disable the add ons you do not wish to use with the Manage Add-Ons IE Options screen added in Win XP SP2

Pendent answered 16/9, 2008 at 12:29 Comment(4)
This doesn't seem to solve the problem at all -- all you can do here is enable or disable Java. Or am I missing something?Kenna
It depends on which versions of java (and plugin) you have installed. I'd hope this answer becomes obsolete as Sun improves the situation. IE is also changing... IE7 lets you show "Add-ons that have been used by Internet Explorer". My PC shows clearly different versions of the same plugin.Pendent
@StephenDenne, Why don't you delete this answer?Myungmyxedema
This answer does not solve the problem for me either.Rurik

© 2022 - 2024 — McMap. All rights reserved.