I am installing a service that relies on java.exe being on PATH, which it normally is if the Sun/Oracle JVM is installed. I already check the registry for the version and set the JAVA_HOME environment variable based on what I find if it is not already set. However, on a handful of installations, users have the Sun JVM installed but the EXE is not on PATH. I would like some way to check this so I could add the folder to PATH if it is not there already.
I could easily just always add the JAVA_HOME folder to PATH, but I would prefer not to if possible. If I have to go this route, is AI smart enough to not do this if that folder is already on the PATH?
Normally the JVM does not need to be on PATH because java.exe is in the Windows folders.
Mark
FOLLOW US
Get the latest news in Application Packaging