### Get Java Version and Home

To get the Java Version and Home use the jFX SystemProperty.
Example Java 9
Log(GetSystemProperty("java.runtime.version",""))
9+181
Log(GetSystemProperty("java.home",""))
C:\Program Files\Java\jdk-9
Example Java 8
Log(GetSystemProperty("java.version", ""))
1.8.0_45
Log(File.Combine(GetSystemProperty("java.home", ""), "bin/java"))
C:\Program Files (x86)\Java\jdk8\jre\bin\java
Get all Java Settings
'Get all the Java properties and return as list
`Sub getJavaProperties As List
'Declare the JavaObject and init the class
Dim JO As JavaObject
JO.InitializeStatic("java.lang.System")
'Get the system properties into one object
Dim objProperties As Object = JO.RunMethod("getProperties", Null)
'Convert the properties object into a list of strings
Dim s As String = objProperties
s.SubString(1)
Dim l As List
l = Regex.Split(", ", s)
l.Sort(True)
Dim jl As List
jl.Initialize
'List the properties
For i = 0 To l.Size - 1
Dim p As String = l.Get(i)
If p.SubString2(0,4).ToLowerCase = "java" Then jl.Add(p)
Next
jl.Sort(True)
Return jl
End Sub`

Changed: , Category: Application, File: T6C159M1163.htm, ID: 1163