How to fix: Java Plug-in Fatal Error: The JRE cannot be loaded from <bin\hotspot\jvm.dll>

BastOp
BastOp used Ask the Experts™
on
I installed J2EE JDK on my NT4 box at work so I can program during my freetime (by accident, meant to install J2SE SDK), but of course it hosed up the previous apps running on JRE 1.3.1.02.  I have unloaded J2EE, JDK 1.4, and reinstalled SP6A and JRE 1.3.1_02 numerous times, but my application still doesn't work.  The certain application seems to need this jvm file but it keeps giving the error message:

Java[TM] Plug-in Fatal Error:

"The Java Runtime Environment cannot be loaded from <\bin\hotspot\jvm.dll>

The path is:
C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\hotspot

I tried changing the install directory thinking the wierd directory name 1.3.1_02 was doing it but of course that simple solution didn't work.  I don't have administrator access but I have tried loading SP6A and the JRE 1.3 with the admin login . . .

Any help would be much appreciated, soon they will ghost my box. . .Thanks - BastOp
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Java Developer
Top Expert 2010
Commented:
i'd uninstall everything, and install J2SE (which includes JRE).

Commented:
Try uninstalling everything 1st J2SE, J2EE, SP6 and any JRE. SP6 is under add/remove programs which has the name of xp hotfix. Then reinstall your JDK for J2SE( this already includes JRE ). Then try running your
program again. It should work :)

If it doesnt work check maybe your download JDK is corrupted.
Hope it helps . . .
Javatm
Why do people find it necessary to repeat someone else's comment??  I can see if you both wrote it at the same time, but it looks like there was better than an hour and a half difference there..

DONT REPEAT COMMENTS IT'S REALLY ANNOYING!!  ALSO DON'T EXPECT A POINT SPLIT FOR SIMPLY REPEATING SOMETHING SOMEONE ELSE HAS ALREADY SAID!!!

If either of you read the original post, you'd notice that:

>> I have unloaded J2EE, JDK 1.4, and reinstalled SP6A and JRE 1.3.1_02 numerous times,

What I'd suggest (PLEASE DON'T REPEAT MY SUGGESTION!!) is to set the JAVA_HOME environment variable as suggested here:

http://java.sun.com/j2ee/tools/deployment/wininstall_j2eedeployapi.html#other_comp

Also make sure the bin directory is on your path.

Failing that, since noone else has suggested it, try uninstalling everything 1st J2SE, J2EE, SP6 and any JRE. SP6 is under add/remove programs which has the name of xp hotfix. Then reinstall your JDK for J2SE( this already includes JRE ). Then try running your program again.  (JUST KIDDING - THAT WON'T WORK)

PS - EXPERTS - PLEASE DON'T REPEAT MY SUGGESTION!!!

Good luck,
Shawn

(PLEASE DON'T REPEAT MY SUGGESTION!!!!!!!!!!!!!)
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Mick BarryJava Developer
Top Expert 2010

Commented:
> Failing that, since noone else has suggested it

You're kidding right :)
>>  but of course it hosed up the previous apps

Could you elaborate on this??  If you get warnings about depreciated API's, you could always:

javac -nowarn MyClass.java

It should be backwards compatible??  If you give up 1.4, you give up the new io, xml processing, and lots of other goodies..

Also, if you didn't read my previous post because it looked like a rant, I apologize.. That should correct your problem..

Good Luck,
Shawn
>> You're kidding right :)

Obviously ;-) ..  (just returning the favor..  Friend : ShawnCurry)

Sorry..  Not mad at you pal - you've helped me out big time.. (even though you stole my points!!).  This thing turns into a competion once you get your name up on that scoreboard, and it's just really discouraging when someone repeats what you said and takes your points from you.. (I'm sure you know what I mean..)

Mick BarryJava Developer
Top Expert 2010

Commented:
> even though you stole my points!!

didn't mean to. I just answer the q's, and do my best not to dupe previous suggestions. Sometime the difference is subtle and I understand it can get annoying.
It does seem like a fact of life on this site that comments do get duplicated for whatever reason.

> This thing turns into a competion once you get your name up on that scoreboard

Provide people with useful comments and the points will come :)

Commented:
ShawnCurry;

Why in the world r u attacking me :( obviously here are your comments :

DONT REPEAT COMMENTS IT'S REALLY ANNOYING!!  ALSO DON'T EXPECT A POINT SPLIT FOR SIMPLY REPEATING SOMETHING SOMEONE ELSE HAS ALREADY SAID!!!

Your not be professional on what you are doing, 1st thing that I want you to know. I'm at work taking calls over and over again because thats my job. I work in a call center, sometimes I can not exactly focus on a question because I'm handling a call but to the very best level I'm trying to help.

Split Points - I only commented that before because there are several people who helped in that previous topic
including me and I do believe that there should be split points but you got the points :( sorry for us there are
no split points happend.

Your being off the mark and not being professional. One more thing behave like a real expert because where here
to help not to argue okey. I'm not mad at you, I just want to state what is right. So pls. do me a favor and
lets be friends okey :)

Friend : Javatm


I do apologize..  Just seems to be happening to me a lot..

I ESPECIALLY apologize to BastOp for completely driving your question off topic..  To reiterate:

Make sure you set you JAVA_HOME as described here:

http://java.sun.com/j2ee/tools/deployment/wininstall_j2eedeployapi.html#other_comp

Good Luck,
Shawn

Commented:
Thank you friend and Good luck to you,
your gonna be a good expert.
Friend : Javatm :)
Mick BarryJava Developer
Top Expert 2010

Commented:
> Make sure you set you JAVA_HOME as described here

My understanding was (s)he actually wanted to install J2SE.
And the problem appears to be with the JRE installation and not the JDK.

Commented:
>> but of course it hosed up the previous apps running on JRE 1.3.1.02.  I have unloaded J2EE, JDK 1.4, and    
     reinstalled SP6A and JRE 1.3.1_02 numerous times, but my application still doesn't work.  

     That seems to be what I also think off, thats why I guess there are a lot of problems w/ the current
     jre and the previously installed jdk, so I suggested to uninstall everything and install jdk.

Author

Commented:
I tried loading JDK 1.3.1_02 (supposedly one of my 3 java apps requires that specific version) and it doesn't work.  I have tried setting the path in my user environment path, and also setting the JAVA_HOME path to the install directory. . .neither works.  I haven't tried uninstalling SP6A yet but I don't want to purposely hose my box. . .this really isn't a testbox :)

More history - I have 3 programs that require java.  One is an web interface to another company, another is a DSLAM interface, and a third is an interface to our own IT help desk.  After uninstalling everything the first time and reinstalling JRE 1.3.1_02 the only thing that worked was the DSLAM interface.  Both the web interface and the IT interface gave the same error:
Cannot load Java Runtime Environment from <bin\hotspot\jvm.dll>
I got the IT help desk to work by installing JRE 1.2 (as it requested).  

Yes the web interface requires JRE 1.3.1_02 to run, and my first objective is to get that program to run.  The second objective is to get my Java IDE (jGrasp) to work (not sure if it will like JDK 1.3.1_02 or not) if it doesn't, I can just grunt down and command line compile my stuff (its been awhile :) My third objective is to not hose this box completely as it is my work box and I can still run 19 of the 20 programs I need for work (DSL-T1 VoIP troubleshooting)

Thanks for all the comments, but keep them coming - BastOp
All these programs have installers??  I'll wager they were installed only once on the machine, and it was probably before you had java installed?? They probably run from executable jars.. You may be able to repair them by simply finding the target of their shortcuts (probably a batch file or simple exe) and modifying the jre that they use.. (You could supply your own batch file / exe that invoked the correct JVM)

If it's possible to reinstall the programs you're trying to use:

1. uninstall everything having to do with java (including these programs)
2. get the *newest* J2SE and install it
3. install the programs

>> (supposedly one of my 3 java apps requires that specific version)

Does this run as an applet (in a web browser?)
That should be the only time it would require a SPECIFIC java install and only if it used an <object> or <embed> tag to load. But in that case, you can modify the html to use a dynamic classid as described here:

http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html
http://java.sun.com/products/plugin/versions.html

Mick BarryJava Developer
Top Expert 2010

Commented:
Do you have >1 version of the JRE installed?
Pre-1.4 versions of the JRE don't handle living together too well.
Top Expert 2004

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-- Split between objects and ShawnCurry

Please leave any comments here within the next FOUR days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TimYates
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial