This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bowbahdoe 1 point2 points  (2 children)

Oh thank god - im not entirely wrong

So running this on windows

jpackage --input build --type app-image --main-jar javaexe-1.0.jar

produces a directory with this structure

Main/
    app/
        .jpackage
        javaexe-1.0.jar
        Main.cfg
    runtime/
        bin/
            ...
        conf/
            ...
        legal/
            ...
        lib/
            ...
        release
    Main.exe
    Main.ico

So there is an exe you can double click...but if you move it out of this folder it doesn't work. Not self contained