I made a database and java application which autoupdates the front end of a database. The only issue is, the code I use to run the jar file references the java bin file location. There are different java versions in our environment, so the path can't be hard coded.
How can I get the computers current jre/bin location?
Private Function RunJar()
ChDir LocationToJar
Shell """C:\Program Files\Java\jre7\bin\java"" -jar myprog.jar"
End Function