viviotech / lucee-installer

BitRock Installer XML config and files for the Lucee installers
http://lucee.viviotech.net/
9 stars 2 forks source link

service.bat attempts to use system JRE #64

Closed utdream closed 9 years ago

utdream commented 9 years ago

As reported by Ivan: https://groups.google.com/forum/#!topic/lucee/BvQDgStcVy0

utdream commented 9 years ago

https://stackoverflow.com/questions/11120279/difference-between-java-home-and-jre-home

There is code in the service.bat file that attempts to locate and validate the JAVA_HOME variable as well as the JRE_HOME variable. My guess is that since Ivan's JAVA_HOME was pointing to a non-existent directory, the script defaulted and attempted to find the system installed JRE.

To compensate for this, and since the JAVA_HOME is only used to display extra debugging information, I'm commenting the line that looks for the JAVA_HOME, so that the script will instead simply use the JRE home, which we configure to use the pre-packaged installer JRE.

utdream commented 9 years ago

Implemented in Tomcat 8 for Lucee installers 4.5.1.022

utdream commented 9 years ago

https://github.com/utdream/CFML-Installers/wiki/Lucee-Installer-Release-Notes