I would suggest using the registry. You program windows, so do it differently. The registry is an irrational concern.
Registry key for version:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion
Information on how to get the value from the registry can be found here .
Information about other java-related registry keys can be found here .
anon
source share