Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Java Runtime Environment Doesn't Seem to be Updating

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I tried searching for some threads for my issue, but couldn't seem to find the answer, so starting a new thread...I updated Java on Windows 7 from 1.7.0_40 to 1.7.0_45. I'm also updating from a jre package to a jdk. After installing _45, I updated %JAVA_HOME% and verified that %JAVA_HOME% is correctly set in my path. When I echo %JAVA_HOME%, I see that it's pointed to the latest version installed.

However, running the java -version command in my console still gives me the previous runtime env version. I did some research, and even snooped around the Java Control Panel, and noticed that the system runtime env was still set to the previous version, and I was also unable to edit the settings. I also noticed that in the User env section, that my latest install wasn't picked up, so I manually added it. Perhaps this could be the problem (shoddy install?), but if there's any suggestions out there on how to get java -version to display properly, I would greatly appreciate it. I will also try and re-install jdk as well.

Thanks in advance,

JP
 
lowercase baba
Posts: 13048
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i don't think %JAVA_HOME% is used for that. I think you need to edit your %PATH% variable to point to the new install.
 
Marshal
Posts: 75644
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JAVA_HOME is only used like that if you use the method in our FAQ to set the PATH.
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic