viviotech / lucee-installer

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

system-based JRE used during install #90

Closed utdream closed 5 years ago

utdream commented 6 years ago

One of the goals I've had for the installers is that they would be self-sufficient. That they would contain everything that a user would need in order to run Lucee on whatever platforms we supported.

There appears to be a recurring issue that with the windows system script that creates the windows service where it attempts to use the JRE that's installed on the Windows system instead of the JRE that's included with the installer itself. This leads to problems with unsupported versions of the JRE getting utilized when the windows system script runs. Note the following thread:

https://dev.lucee.org/t/installation-fail-timeout-starting-tomcat/3812/2

I'm personally fine if a user wants to change the JRE that the tomcat service runs AFTER the service has been installed. That is totally their right. But this issue where the installer doesn't work needs to be addressed. The installer should use the JRE that it is shipped with and not the system JRE during the install process.

utdream commented 6 years ago

the service.bat file currently has the following:

set "JRE_HOME=@@installdir@@\jdk\jre" set "JAVA_HOME=@@installdir@@\jdk"

So.... must be an issue with the autodetect....

utdream commented 5 years ago

This turned out to be a different issue entirely, which I created a different issue for and have since corrected. I just never returned to this one I guess. The full thread linked to above on the dev.lucee.org site has the details. Going to close this.