• Post Reply Bookmark Topic Watch Topic
  • New Topic

Registry Value  RSS feed

 
rama krishnan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get the registry value in windows for the java (for JRE Version)?
 
Tim Holloway
Saloon Keeper
Posts: 18797
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java doesn't depend a lot on the Windows Registry. This is partly because Java is OS-neutral and nothing quite as horrible as the Windows Registry exists on most other platforms, so it's Java doesn't attempt to keep critical information there.

The other reason is that it's perfectly permissible to keep as many different JRE's and JDK's in a system as you want, and in fact, it's often important to do so. For example, Oracle remained dependent on Java 1.3.8 long after mainstream Java was into the 1.4 releases.

Unless you're actually trying to inventory the JDKs and JVMs in a machine, what you really want to know is the version of Java that your java app itself is running, and that's available via the java.lang.System properties.

When you have a command shell open and you want to know which JVM is going to be invoked via that shell's PATH, just type "java -version".
 
rama krishnan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lot of Thanks Tim Holloway

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!