You are here

How to use JDK/OpenJDK in PortableApps Launcher?

1 post / 0 new
XJDHDR
Offline
Last seen: 1 month 1 week ago
Joined: 2014-12-31 09:15
How to use JDK/OpenJDK in PortableApps Launcher?

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?