Skip to content

Generated .exe does nothing #237

@ppazos

Description

@ppazos

I'm doing this for packaging a CLI app on Linux with the windows target:

export WIN_JAVA_HOME=/home/pablo/GitHub/jdk-11.0.22+7-win
java -jar packr-all-4.0.0.jar --platform windows64 --jdk $WIN_JAVA_HOME --useZgcIfSupportedOs --executable norapp --classpath app/build/libs/cabolabs-x-all.jar --mainclass com.cabolabs.automation.App --output out-win

In the out-win folder I have a .exe, when I try to execute it in a win virtual machine I get no output.

Though if I execute the jar directly: out-win\jre\bin\java -jar cabolabs-x-all.jar it works as expected.

I can't tell what's wrong with the .exe generated. There is no output at all, even from the cmd console.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions