Jul 27 2021 06:53 AM
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.
---------------------------
Error launching IDEA
---------------------------
Failed to load JVM DLL C:\Program Files\WindowsApps\IntelliJIDEACommunityEdition2016.3.4_163.12024.16.0_x64__p1z46hfsarpje\VFS\ProgramFilesX86\JetBrains\IntelliJ IDEA Community Edition 2016.3.4\jre\jre\bin\server\jvm.dll
If you already have a 32-bit JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.
---------------------------
OK
---------------------------
The application works fine when installed from original source without an additional JRE installed or a JAVA_HOME Environment Variable set. The file that can't be found is present in the location that the app is looking for them, I have tried capturing the app both with and without installing to VFS as well as installing to a location without spaces in the target folder structure. I have also launched the application during the capture phase and for the first use settings.
I have also used the PSF Trace Fixup but all that seems to do is confirm the error message I am getting from the application.
I'm not sure what else I can try or why the app wouldn't be able to find the JRE when it is looking in the correct place.
Aug 05 2021 04:29 AM
Aug 05 2021 09:32 AM
Aug 13 2021 04:35 PM
Aug 16 2021 01:35 AM
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?
Aug 16 2021 03:18 AM
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 2021 08:31 AM
Aug 27 2021 05:59 AM
Aug 28 2021 02:53 PM
Aug 28 2021 03:14 PM
Sep 01 2021 01:05 PM
I have looked into UVC. It is an odd thing...
I don't have it working yet, but getting closer.
What I know:
The app makes use of FindFirstFile and gets confused. This is something that I am investigating as a potential edge-case bug in the FileRedirectionFixup. I'll drop a note back here if fixable.
Sep 21 2021 06:52 AM
Sep 21 2021 07:13 AM
Sep 21 2021 09:27 AM
Sep 27 2021 11:44 AM - edited Sep 27 2021 11:45 AM
The new version of the free PsfTooling (4.14) is now available in the Microsoft Store or TMurgent website. This includes many important fixes to the PSF that I announced earlier today (https://www.tmurgent.com/TmBlog/?p=3309 ). This version solves a number of launching issues that we have been discussing, including PSF Scripting, and the launching of cmd files directly from the launcher.
Of importance for me to point out: The shell launch of a cmd/bat file by PsfLauncher used to drop out of the container and have no access to package files. This is due to a change made by Microsoft a couple of years ago in the OS. I found a way to overcome this in the 2021.09.23 PSF version, so that those shortcuts will work as you'd expect now.
I'll also mention that one of the apps with a "crappy java" I was pointed to was the UVC app. This is a very old Java version which has additional behaviors that the PSF can't cope with today due to unanticipated OS limitations in the container. Sorry!
Sep 28 2021 02:36 AM
Sep 30 2021 03:04 AM
@TIMOTHY MANGAN Hi, when using the 4.14 toolbox I do get another psflauncher versions then when I download the psflauncher from the github location (https://github.com/TimMangan/MSIX-PackageSupportFramework/blob/develop/ZipRelease-v2021.09.26/Releas...
From the toolbox the size is much much larger and seems not to work with me.
When using the ones from github, the package starts working ;)