i might need some wisdom for an idea i have regarding delphi host java plugin communication.
Other products we distribute using tomcat with a jre-sandbox, means we can use java 1.8 for our tomcat and java services without the requirement of reading the envirement… Can i setup such way through hydra? Would be Awesome!
Edit: uHYJavaVM.THYJavaVM.Create access through GetJavaRuntimePath(‘JAVA_HOME’). I would love if there would be a statement like:
constructor THYJavaVM.Create(bridgeJarFilename: String; additionalOptions: array of String);
runtimePath := GetJavaRuntimePath(‘HYDRA_JAVA_HOME’);
if(Trim(runtimePath) = ‘’) then
runtimePath := GetJavaRuntimePath(‘JAVA_HOME’);
if runtimePath = ‘’ then raise EJvmException.Create(‘Cannot find Java installation path’);
InitializeJavaVM(runtimePath, bridgeJarFilename, additionalOptions);
this would allow to setup alternative JRE Versions regardless what official version users have been installed.