"The Java Runtime Environment cannot be loaded..." Error Message
After downloading and installing the Java Plug-In (j2re-1_3_1_01a-win.exe) I return to the Plug-In page (the one with the steaming coffee cup) and get the following error message: "The Jave Runtime Environment cannot be loaded from < 4d\bin\hotspot\jvm.dll>"
The odd characters before the \bin change every time I leave and then return to the page. Reloading the page gives the same set of odd characters. Has anyone seen this and if so how do I get this thing to work? I tried downloading Beta 3 of the 1.4 version of the plg-in. When visiting the page with the steaming coffee cup after installing this version, IE (6.0.2600) disappears. The browser just closes without giving error messages or anything else. Thanks in advance for any help.
[769 byte] By [
Dredd9799] at [2007-9-26 13:57:17]

I experience the same problem when the JRE is installed on my D drive ... but it works fine when installed on my C drive. Prior to some registry clean-up, the error listed "c:\program files\javasoft\jre\1.3.1\bin\hotspot" when installed to D drive ... now it behaves as described below ... help!
> After downloading and installing the Java Plug-In
> (j2re-1_3_1_01a-win.exe) I return to the Plug-In page
> (the one with the steaming coffee cup) and get the
> following error message: "The Jave Runtime
> Environment cannot be loaded from
> < 4d\bin\hotspot\jvm.dll>"
>
> The odd characters before the \bin change every time I
> leave and then return to the page. Reloading the page
> gives the same set of odd characters. Has anyone seen
> this and if so how do I get this thing to work? I
> tried downloading Beta 3 of the 1.4 version of the
> plg-in. When visiting the page with the steaming
> coffee cup after installing this version, IE
> (6.0.2600) disappears. The browser just closes
> without giving error messages or anything else.
> Thanks in advance for any help.
Rather than install the JRE, I installed the Plug-In from ( http://java.sun.com/getjava/download.html) and it fixed my problem.
Similar thing happened to me with Java Plug-In 1.3.1. I installed the plug in and worked great with IE 5.5. But when I tried opening the same Java 1.3.1 applet with Netscape 4.79, I got an error.In the "Java(TM) Plug-in 1.4 Fatal Error Dialog" box it said "The Java Runtime Environment cannot be loaded from <D:\JDK13~1.1_0\bin\hotspot\jvm.dll>". It was pointing to the JDK I had long ago uninstalled. The plug-in was installed afterward the JDK uninstall. The registry was pointing to the right place. I went to the Java 1.3.1 Plugin in the Control Panel, went to Advanced had it point the the right JRE directory. Changed it from "Use Java Plug-in Default". And it worked.
Had the same error and this solved the problem: Turn off the setting "JIT compiler for virtual machine enabled" located in the "Internet Options/Advanced/Microsoft VM" in IE, since there is no "hotspot" path in the jre-installation.
I fixed it by going to the Java 1.3.1 Plugin in the Control Panel and just clearing the cache under the "Cache" tab.
**********************
*SOLUTION *
**********************
The problem is the contents of the .java directory in the
user's home directory (C:\Documents and
Settings\userName\.java). There are properties files in there
that need to be removed prior to INSTALLATION of the 1.4
plug in. I deleted all the contents of that directory which I
believe deleted some certificate trust info as well as a number
of files called properties, properties131, properties14, etc.
Then I ran the 1.4 Plug-in installer and Presto! The 1.4 should
work!
The properties files look like;
# Java(TM) Plug-in Properties
# DO NOT EDIT THIS FILE. It is machine generated.
# Use the Activator Control Panel to edit properties.
#
#Thu Sep 05 13:51:27 PDT 2002
javaplugin.cache.size=0
javaplugin.jre.path=Default
javaplugin.console=hide
javaplugin.enabled=true
javaplugin.debug.mode=false
javaplugin.jre.type=Default
javaplugin.proxy.usebrowsersettings=true
javaplugin.exception=false
My (javaplugin.jre.path) was pointing to a older, no longer
installed, 1.3 JRE directory.
Please see JDC bug #4783788.Your votes for the same would be appreciated.
jessh at 2007-7-2 15:02:55 >

We have the same issue on 2 of our PCs, and I have tried all the things mentioned on this forums so far, to no avail.
Our problem is that we must use 1.3.1 plug-in, because our complex applet only works with that version and fails with newer JRE.
At first, we had the same issues, then installed JRE 1.4.1_02, only to find that while the applet runs, it generates tons of exceptions and doesn't work properly.
So we uninstalled JRE 1.4.1 and reinstalled 1.3.1 plug-in, but no matter what we do, we get an error message with the title 'Java plug-in 1.4', 'The Java Runtime Environment cannot be loaded'...
Any further ideas? It seems that although JRE 1.4 was completely uninstalled, IE 6 still continues to see and try to use it...
Help!
adir1 at 2007-7-2 15:02:55 >

It worked for me. It seems that you just need to delete the file deployment.properties.I found it under: Program Data\Sun\Java\Deployment
As the poster jessh indicated above, the bug is logged and workaround provided at the JDC site.
Having gone there and read the sun response, here is the problem and simple solution.
The problem is that if you ever had 1.3.1_xx version of the JRE loaded, then loaded a 1.4.2_xx version, some registry keys were removed, and that's why you're getting the "cannot load runtime environment" error.
Rather than manually adding registry keys for those of you who are uncomfortable with that, you just need to re-install the 1.3.1_10 version of hte JRE. If you need to have both the 1.4.2 version and 1.3.1 version available, you have to install the 1.3.1 version LAST so it will recreate the registry keys removed by thte 1.4.2 installation.
This problem is apparently fixed by sun in the 1.4.2_4 version of the JRE (the installation simply re-creates the registry entries that are removed), which is not released yet (as far as I know).
Hope this helps, and thanks to jessh who pointed me to this solution.
Under the Advanced Tab in the Java Plug-in Control I changed the Java Runtime Envioronment from "Use Java Plug-in Default" to JRE 1.4.2_04 in Program Files\Java\j2re1.4.2_04 and that solved the error message for me as well.
Hello Phinnegan et all,
the problem is *NOT* solved in JRE 1.4.2_04 (build 05b)... the only solution that worked for me (too) was the one suggested by the mighty capaloco and that I enclose here together with your answer slightly below.
Hope this confirmation will be of some help and thanks to capaloco for the effective solution.
Re: "The Java Runtime Environment cannot be loaded..." Error Message
Author: capaloco
In Reply To: Re: "The Java Runtime Environment cannot be loaded..." Error Message Jan 30, 2004 11:20 PM
Reply 9 of 11
It worked for me. It seems that you just need to delete the file deployment.properties.
I found it under: Program Data\Sun\Java\Deployment
The REAL (simple) solution
Author: Phinnegan
In Reply To: Re: "The Java Runtime Environment cannot be loaded..." Error Message Feb 11, 2004 9:40 AM
Reply 10 of 11
As the poster jessh indicated above, the bug is logged and workaround provided at the JDC site.
Having gone there and read the sun response, here is the problem and simple solution.
The problem is that if you ever had 1.3.1_xx version of the JRE loaded, then loaded a 1.4.2_xx version, some registry keys were removed, and that's why you're getting the "cannot load runtime environment" error.
Rather than manually adding registry keys for those of you who are uncomfortable with that, you just need to re-install the 1.3.1_10 version of hte JRE. If you need to have both the 1.4.2 version and 1.3.1 version available, you have to install the 1.3.1 version LAST so it will recreate the registry keys removed by thte 1.4.2 installation.
This problem is apparently fixed by sun in the 1.4.2_4 version of the JRE (the installation simply re-creates the registry entries that are removed), which is not released yet (as far as I know).
Hope this helps, and thanks to jessh who pointed me to this solution.
I simply copied the j2re1.4.2_04 directory to j2re1.4.2_03 and it worked again! Apparently the failing library could then get the necessary addresses from there. I realized that I had to uninstall the _03 version before installing _04 something that the new installation should have done.
I dont know if one could change the registry. Perhaps uninstalling the latest version, installing the oldest, then uninstalling it and finally installing the latest one could also do the job and I might to this when I have more time. Waiting for some next version would be an even better idea...