This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

I want both JRE1.3 and JRE1.4, what can I do?

 
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want both JRE1.3 and JRE1.4, what can I do?
and how to switch?
BTW: My OS is WIN2000
thanks.
 
pioneer
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about creating different user profiles to login into. You could install 1.3 for one and 1.4 for the other. If you need to work on the same project using different Java versions you could use a central CVS repository and check out the source into the two different users' profiles and build them.
(but haven't tried it myself...yet)
Ah you said JRE - well the same applies I guess.
-Barry
[ December 19, 2002: Message edited by: Barry Gaunt ]
 
pioneer
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use jsdk1.4 and jsdk1.3 alternativlely bye having a variable $JAVA_HOME
and my PATH as
PATH=$PATH:$JAVA_HOME/bin
So when I wan to switch I update the env variable
 
Michael Zhang
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Barry Gaunt.
I tried what your say, but it still worked in JRE1.4. I found these register key in my register.
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.4"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.3.1_04]
"JavaHome"="D:\\Program Files\\JavaSoft\\JRE\\1.3.1_04"
"MicroVersion"="1"
"RuntimeLib"="D:\\Program Files\\JavaSoft\\JRE\\1.3.1_04\\bin\\hotspot\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
"JavaHome"="D:\\Program Files\\Java\\j2re1.4.1_01"
"MicroVersion"="1"
"RuntimeLib"="D:\\Program Files\\Java\\j2re1.4.1_01\\bin\\client\\jvm.dll"
The root is HKEY_LOCAL_MACHINE, that means all of my computer's user can use them.
So, I tried to modified the key "CurrentVersion" to "1.3" or "1.3.1_04" but it still worked in JRE 1.4.
Can you tell me an other way for my trouble?
thanks.
 
pioneer
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last JRE you installed as the "system" JRE probably put a java.exe file in you windows system folder (e.g., C:\WinNT\system32). If you use some other means to get the java.exe file in the PATH (perhaps as suggested by Zkr Ryz), you should be able to remove the java.exe from system32.
As I recall, the install program for some JREs give you the option of not making the JRE being installed the "system" JRE.
 
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!