I'm a bit confused on how to properly set up JavaPackager to include the JRE. I'm testing my application on Windows with a friend who doesn't have any JDKs or JREs installed, but attached is what's happening when they run the program. Here is the corresponding part of my pom.xml:
<configuration>
<!-- mandatory -->
<mainClass>lol.ocelot.dragonmanager.DragonManager</mainClass>
<!-- optional -->
<bundleJre>true</bundleJre>
<jrePath>/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home</jrePath>
<generateInstaller>false</generateInstaller>
<additionalResources>
<additionalResource>characters/</additionalResource>
<additionalResource>homebrew/</additionalResource>
</additionalResources>
<copyDependencies>true</copyDependencies>
<administratorRequired>false</administratorRequired>
<platform>windows</platform>
<createZipball>true</createZipball>
</configuration>
If I use <jdkPath> instead of <jrePath> it says it's an invalid JDK for windows, but if that's what I'm supposed to be doing, then I'm not sure how to configure a jdk for windows or linux while I'm using MacOS. Any ideas?