Solved

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

Posted on 2004-03-30
7
256 Views
Last Modified: 2010-03-31
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
Comment
Question by:VSACIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 10713163
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
 
LVL 7

Expert Comment

by:searlas
ID: 10713283
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
 
LVL 30

Expert Comment

by:Mayank S
ID: 10713332
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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 24

Expert Comment

by:sciuriware
ID: 10713739
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
 

Author Comment

by:VSACIT
ID: 10725652
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
 
LVL 24

Accepted Solution

by:
sciuriware earned 500 total points
ID: 10726063
You should install both into different directories, both to C:\Program Files\JAVA is no option.
;JOOP!
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10730208
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to determine if a string is a valid SHA value 7 57
Cisco ASA: Java web start no go, asdm launcher no go 3 88
Java class and jar 3 60
ArrayList Adding/settign data 3 37
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question