Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Java Runtime Environment Doesn't Seem to be Updating

Posts: 27
  • Mark post as helpful
  • send pies
  • 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,

lowercase baba
Posts: 12766
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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.
Posts: 65772
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAVA_HOME is only used like that if you use the method in our FAQ to set the PATH.
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!