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?