I'm working on making a Java program run in a PortableApps Launcher (specifically Ghidra). The problem I see so far is that this program specifically needs to be run in a JDK environment, and doesn't work with just JRE.
How would someone writing a PA Launcher use any portable JDK the user has installed? For JRE, you simply set the [Dependencies] -> UsesJava key to true/require, set javaw.exe as the ProgramExecutable, and supply the java program as a command line argument. Is there something like this for JDK? Or would I need to write some custom NSIS code to make this work?
I'm still interested in finding the answer to this question.
I did some searching and found that at some point in the past, the PAL codebase did have some level of support for the JDK but it was removed at some point. If you open that same file in the current PAL source code, all references to this JDK Mode and code to find JDK directories is not present.