• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

Is it possible to run 2 JRE's on same PC?

Hi all,

We have a couple of applications that are very specific to what version of JAVA is installed.  One program requires JRE 1.3.1_02, and works with no older or newer.  Another application requires 1.3.1_09 and works with nothing older.

So obviously, just with those two apps, there is no way to operate them on the same PC.  Add in the fact that most Java web pages require 1.4 now, and it's out of hand.

So is there any possible way to switch JRE's on the fly or with a reboot (short of uninstalling and reinstalling)?  The only suggestions I've found on the Internet is to use a second browser application (like Netscape or Mozilla) and try to get them running at separate Java versions, but I have had no luck with it.


Thanks for any suggestions you can offer,
VSACIT
0
VSACIT
Asked:
VSACIT
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
Well, as far as I can tell you, your code should be such that you should not use deprecated API, etc - so that it runs with future versions.
0
 
searlasCommented:
Yes, you can run lots of JRE's on the same machine, and run *applications* in different JRE's simultaneously.

Is your question actually about applets?  I don't see the reason for mentioning Netscape and Mozilla wrt to an application?
0
 
Mayank SAssociate Director - Product EngineeringCommented:
But you might get terribly confused sometimes if you run two JREs ;-) your .java program might run on one and might not run on another :-)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
sciuriwareCommented:
There are many companies that are forced to run old JAVA applications with older JRE's.
Not really a problem.
As long as you keep the JRE's and their environments separated.
So take care where and how you install them.
I found that on SuSE LINUX I could install 4 different JRE's together,
while Windows2000 made some trouble.
In your case you can easily choose the best OS under your application, because it's JAVA .....
;JOOP!
0
 
VSACITAuthor Commented:
I have tried having both 1.3.1_02 and 1.3.1_09 installed and as soon as the second is installed, both of the two apps that I am having dificulties with don't run.  The only way to recover is to uninstall both and install the one that is specific to the program I need at that moment.
0
 
sciuriwareCommented:
You should install both into different directories, both to C:\Program Files\JAVA is no option.
;JOOP!
0
 
Mayank SAssociate Director - Product EngineeringCommented:
If you install them in separate directories, and run the Apps separately in the appropriate JRE (in which they are supposed to run, respectively), you should not face any problems.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now