<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Feb 26, 2025, at 9:22 PM, Michael Hall <mik3hall@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><blockquote type="cite"><div><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div><div>I don’t get that if I delete the existing dmg first.</div><div><br></div><div>Full verbose output at…</div><div><br></div><div><a href="http://mikehall.pairserver.com/rt.txt">http://mikehall.pairserver.com/rt.txt</a></div></div></div></blockquote></div><br></div></div></blockquote><br></div><div>Is there a how-to on using --runtime-image on MacOS? How are you supposed to get a valid runtime to put into JavaVirtualMachines?</div><div><br></div><div>I installed jdk 23 to bootstrap a jdk build. I jpackage’d that.</div><div><br></div><div>jpackage --verbose -n rt -t dmg --runtime-image /Users/mjh/Documents/GitHub/jdk/build/macosx-aarch64-server-release/jdk</div><div><br></div><div>The resulting jdk actually appears to have a similar directory layout to what is in JavaVirtualMachines. </div><div><br></div><div>It lacks the _CodeSignature, Info.plist, and MacOS file and directories.</div><div><br></div><div>It still is not found with either “java —version” or “/usr/libexec/java_home”</div><div><br></div><div>I tried giving it a more standard name in case naming convention mattered.</div><div><br></div><div>The built is jdk 25 and the 23 bootstrap still shows current. </div><div><br></div><div>I thought maybe using that runtime to build an application then jpackage would make it a valid MacOS runtime</div><div><br></div><div>But jpackage --runtime-image with the runtime from that gets a couple no such file exceptions on</div><div>runtime/Contents/Home/lib/libnio.dylib.dSYM/Contents/Info.plist</div><div><br></div><div>The app gets</div><div>HalfPipe.app/Contents/MacOS/HalfPipe</div><div>Error: could not open `/Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/runtime/Contents/Home//lib/jvm.cfg’</div><div><br></div><div>Possibly not a bug but not obviously easy either. </div></body></html>