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. ---...
Siva116
Aug 05, 2021Copper Contributor
Hi AndrewMason....
Is this resovled???? I am also facing this.
Is this resovled???? I am also facing this.
- AndrewMasonAug 05, 2021Copper ContributorHi 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- Siva116Aug 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.