Install4j JRE bundle installation gives error: launch path not accessible

When running my installer on MacOS, it doesn’t detect the OpenJDK 21 installed by Sdkman so it downloads this internal file macos-amd64-21.0.1.tar.gz from my private webserver. That seems an issue too.

2024-05-15 02:47:14.766 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 640] search sequence (
    Y,
    "EJAVA_HOME",
    "EJDK_HOME"
)
2024-05-15 02:47:14.766 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 649] checking standard locations
2024-05-15 02:47:14.766 JavaApplicationStub[35063:355027] -[Launcher findPublicJavaBundle:minVersion:maxVersion:requiredVmIdPrefix:allowBeta:] [Line 730] JDKs (
)
2024-05-15 02:47:14.766 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 657] checking environment variable JAVA_HOME
2024-05-15 02:47:14.766 JavaApplicationStub[35063:355027] -[Launcher replaceVariables:] [Line 369] replacing /Users/MY_USER/.sdkman/candidates/current
2024-05-15 02:47:14.767 JavaApplicationStub[35063:355027] -[Launcher replaceVariables:] [Line 390] returning /Users/MY_USER/.sdkman/candidates/current
2024-05-15 02:47:14.767 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 657] checking environment variable JDK_HOME
2024-05-15 02:47:14.767 JavaApplicationStub[35063:355027] -[Launcher replaceVariables:] [Line 369] replacing /Users/MY_USER/.sdkman/candidates/current
2024-05-15 02:47:14.767 JavaApplicationStub[35063:355027] -[Launcher replaceVariables:] [Line 390] returning /Users/MY_USER/.sdkman/candidates/current
2024-05-15 02:47:14.767 JavaApplicationStub[35063:355027] -[AppDelegate worker:] [Line 240] searching for other JREs
2024-05-15 02:47:14.768 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 535] {
    "allinstdirs5214-2439-8990-2257" = "/Applications;/Users/MY_USER/Library/Caches/MY_APP_NAME/MY_ENVIRONMENT_NAME;";
    "instdir5214-2439-8990-2257" = "/Applications";
    "singleBundleName5214-2439-8990-2257_/Applications" = "MY_APP_NAME_MY_ENVIRONMENT_NAME.app";
    "updateSchedule4161-5082-9677-6795" = never;
}
2024-05-15 02:47:14.768 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 572] checking /Applications/MY_APP_NAME_MY_ENVIRONMENT_NAME.app/Contents/PlugIns/jre.bundle
2024-05-15 02:47:14.768 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 572] checking /Users/MY_USER/Library/Caches/MY_APP_NAME/MY_ENVIRONMENT_NAME/.install4j/jre.bundle
2024-05-15 02:47:14.768 JavaApplicationStub[35063:355027] -[Launcher findJavaBundle:] [Line 572] checking /.install4j/jre.bundle
2024-05-15 02:47:14.768 JavaApplicationStub[35063:355027] -[AppDelegate worker:] [Line 273] waiting for download to finish 0
2024-05-15 02:47:16.499 JavaApplicationStub[35063:354970] -[AppDelegate downloadDidFinish:] [Line 211] downloadDidFinish
2024-05-15 02:47:16.500 JavaApplicationStub[35063:355027] -[AppDelegate worker:] [Line 282] download returned

It extracts it and set the destination in a random folder like this one:

/var/folders/vb/wd0tzjrd0t9d7s32szf179tm0000gn/T/C2949B03-3FB4-4D8A-892F-E7AD7C2FC848-35063-000016F4FF276DC2/jre.bundle

when it tries to keep the installation an error is thrown:

2024-05-15 02:47:17.516 JavaApplicationStub[35063:355027] -[AppDelegate worker:] [Line 334] args: (
    "-Dfile.encoding=UTF-8",
    "--add-opens",
    "java.desktop/java.awt=ALL-UNNAMED",
    "-Dinstall4j.defaultLanguage=de",
    "-Dexe4j.moduleName=/PATH_TO_MY_INSTALLER.app",
    "-Djava.class.path=/PATH_TO_MY_INSTALLER.app/Contents/Resources/app/i4jruntime.jar",
    "-Xdock:icon=/PATH_TO_MY_INSTALLER.app/Contents/Resources/app.icns",
    "-Xdock:name=MY_INSTALLER",
    "-Di4j.ownBundlePath=/PATH_TO_MY_INSTALLER.app",
    "-Di4j.jreBundle=/var/folders/vb/wd0tzjrd0t9d7s32szf179tm0000gn/T/C2949B03-3FB4-4D8A-892F-E7AD7C2FC848-35063-000016F4FF276DC2/jre.bundle",
    "-Di4j.tarFile=/var/folders/vb/wd0tzjrd0t9d7s32szf179tm0000gn/T/C2949B03-3FB4-4D8A-892F-E7AD7C2FC848-35063-000016F4FF276DC2/jre.tar.gz",
    "com.install4j.runtime.launcher.MacLauncher"
)
2024-05-15 02:47:17.518 JavaApplicationStub[35063:355027] -[AppDelegate worker:] [Line 387] launch path not accessible: (
    0   CoreFoundation                      0x00007ff806d637e6 __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007ff806853e9d objc_exception_throw + 48
    2   Foundation                          0x00007ff807d15e6e -[NSConcreteTask launchWithDictionary:error:] + 5349
    3   JavaApplicationStub                 0x000000000701aa8e -[AppDelegate worker:] + 2306
    4   Foundation                          0x00007ff807c993cc __NSThread__start__ + 1013
    5   libsystem_pthread.dylib             0x00007ff806c1418b _pthread_start + 99
    6   libsystem_pthread.dylib             0x00007ff806c0fae3 thread_start + 15
)

I have run the debug_installer.sh and it has no issue, I guess is not doing the JRE step.

I expect that JDK is detected and, in case there is no JRE installed in the computer, to download the one in my private webserver and install it.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật