• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Install J2SE 1.5

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I installed j2se 1.5 in my machine. I think, tt updated the path & callpath information in the registry. I also have j2se 1.4.2 in my machine. I want to use both.

I looked at the environment varibale, it's all set the 1.4.2. But the current version of java being used in 1.5.

Could someone let me know, how to switch and work on both the versions.
[ August 11, 2005: Message edited by: Anand Bala ]
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have an environment variable called "JAVA_HOME"? If not, create one, and assign it the value of the path to the Java installation you want to use. Then in your PATH variable, add %JAVA_HOME%\bin.

That should work.

..... crossing fingers
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the easiest way to be able to use both is to make a couple of bat files. One bat file sets the PATH to version 1.4 and the other one sets the PATH to 1.5.
 
Anand Bala
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have JAVA_HOME variable pointing to java 1.4.2.

May be I will try with bat file option. Let'z see how that works.
 
I am displeased. You are no longer allowed to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic