Archived
In GraalVM native images, java.home and java.class.path are null. When starting the daemon process, detect if running as native image using org.graalvm.nativeimage.imagecode property. If so, re-exec the current executable instead of trying to spawn a JVM. Fixes NullPointerException on Windows when running `barn service start`. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>