Link to home
Start Free TrialLog in
Avatar of mte01
mte01Flag for Lebanon

asked on

get the java version from registry (.net)

Hi,
i need to know the java versions that are installed on my machine, this returns a specific value, what i need is to check any java
value that is installed on the client's machine and use it.
following is the code:
a = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\JavaSoft\Java Runtime Environment\1.5.0_06", True)
Dim javaPath As String = a.GetValue("JavaHome")
pr.StartInfo.FileName = """" + javaPath + "\bin\java.exe"""
...

thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mte01

ASKER

Thanks a lot, this was helpul