Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Problem setting path to jdk1.5.0_10

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I had installed java1.4.2 runtime in C:\Program Files\Java\j2re1.4.2_12 directory. Now I have installed jdk1.5.0 in F:\Program Files\Java\jdk1.5.0_10 directory. So I have both java1.4.2 runtime and jdk1.5.0.
However inspite of adding F:\Program Files\Java\jdk1.5.0_10\bin;F:\Program Files\Java\jdk1.5.0_10\jre\bin; to system path, it still shows
----------------------------------
output of java -version as below.
java version "1.4.2_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
--------------------------------
Note - I can't see path set to java1.4.2 runtime anywhere in my system path.
So how do I set path to jdk1.5.0 without uninstalling j2re1.4.2?

Could somebody please help?
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you open a new Command Prompt after making the change?

(For Windows ME and XP, I think you actually need to reboot.)
[ January 25, 2007: Message edited by: marc weber ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic