Skip to content

Windows splash preloader issue with batch file #36

Description

@Jprosser91

1.3 version of Windows gives the following error when trying to run the bat file.
Image

Windows cannot find '-Djavafx.preloader=com.athaydes.logfx.SplashPreloader'. Make sure you typed the name correctly, and then try again.

Running the old bat in its place still works, but gives the following error

Image

Setting the bat file to the following works and doesn't give any pop-ups or errors (probably not recommended due to it being restricted)

@echo off

set DIR=%~dp0

set VM_OPTIONS=-Xms32m -XX:+UseSerialGC --enable-native-access=javafx.graphics 
"%DIR%java" -splash:"%DIR%logfx-logo.png" %VM_OPTIONS% -m com.athaydes.logfx/com.athaydes.logfx.LogFX %*

OS is Windows 11 25h2 (if that helps with troubleshooting)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions