Hello Community,
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);
var
runtimePath: String;
begin
runtimePath := GetJavaRuntimePath(‘HYDRA_JAVA_HOME’);
if(Trim(runtimePath) = ‘’) then
begin
runtimePath := GetJavaRuntimePath(‘JAVA_HOME’);
end;
if runtimePath = ‘’ then raise EJvmException.Create(‘Cannot find Java installation path’);
InitializeJavaVM(runtimePath, bridgeJarFilename, additionalOptions);
end;
this would allow to setup alternative JRE Versions regardless what official version users have been installed.
thank you for your reply. One more Sidenode : Import Interfaces from java-module would require the same feature. thats not something i would know how to fix from my side.