Forum Discussion
AndrewMason
Jul 27, 2021Copper Contributor
Packing Apps with built in JRE...
I have a couple of applications that I am trying to capture that install their own JRE however after creating the MSIX they complain that the JRE can't be found and suggest setting JAVA_HOME. ---...
AndrewMason
Aug 05, 2021Copper Contributor
Hi Siva116,
No, this isn’t resolved yet but I have noticed that if you inspect the main EXE with ProcMon you can see that the JRE bin folder and at least one other JRE path is present in the path environment variable for the EXE so it looks like that is created at runtime and the path is correct but it still says the JRE is invalid.
I’m not sure if there is something else missing or if maybe it wants to write somewhere in the JRE location.
Andrew
No, this isn’t resolved yet but I have noticed that if you inspect the main EXE with ProcMon you can see that the JRE bin folder and at least one other JRE path is present in the path environment variable for the EXE so it looks like that is created at runtime and the path is correct but it still says the JRE is invalid.
I’m not sure if there is something else missing or if maybe it wants to write somewhere in the JRE location.
Andrew
Siva116
Aug 06, 2021Copper Contributor
- Aug 13, 2021While I suspect that there is more at play here, you can use the PSF to provide virtual environment variables like JAVA_HOME as container-specific environment variables (this is the purpose of the EnvVarFixup).
But I'm also guessing that you'll find the need for the registry fixup - you'd need to procmon the the access_denied registry entries --, the FileRedirectionFixup, and possibly DynamicLibraryFixup.- Siva116Aug 16, 2021Copper Contributor
HI TIMOTHY_MANGAN,
The same type of issue faced with one more application "Universal Village Corporate", the source installer of this app automatically prompt us to install JRE 1.6.0, as specified we have installed and bundled JRE along with the main application, also implemented all the fixups suggested by PSF Tool of latest version (psflauncher, FileRedirection,Env fixups), still no luck.. while launching the shortcut it through the attached error "Failed to load jvm.dll (Java VM Library) please make sure of 1.4 or higher is installed". In second attempt I have specified the environment variable JAVA_HOME in to the MSIX package, but still no luck, with one more attempt.. tried to inject Registry and Dynamic Library Fixups too, still it also not working.....
as a part of trouble shooing, used procmon and filted the available outcome with processname psflauncher.exe along with PATH which contains jvm.dll, to check from which location its trying to access the dll file, but with this filter no tasks available in the list...
Could you please help us to resolve these type JAVA pre-req issues.
Thanks in advance.
- Aug 16, 2021Reach out to me offline at tmangan @ tmurgent.com. It would be good to have you send me your package.
- AndrewMasonAug 16, 2021Copper Contributor
Thanks TIMOTHY_MANGAN. I have tried the EnvVar fixup but it doesn't seem to have any effect on the behaviour of the app, possible because more than one fix up is needed as you suggest.
Is it possible to set/add to the PATH env var with the EnvVar fix up as that is where the app is adding the "missing" paths at runtime?