Skip to content

[mac] bundled universalJavaApplicationStub is not correct EOL #239

Description

@umjammer

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:

an app created by javapackager plugin doesn't work.

Steps to reproduce the issue/enhancement:

  1. create pom.xml
  2. mvn package -Dmaven.test.skip=true
  3. click the application created

What is the expected behavior?

the application works.

What is the current behavior?

mac said "cannot open the application"

Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?

$ target/Notificator/Notificator.app/Contents/MacOS/universalJavaApplicationStub
zsh: target/Notificator/Notificator.app/Contents/MacOS/universalJavaApplicationStub: bad interpreter: /bin/bash^M: no such file or directory
$ dos2unix target/Notificator/Notificator.app/Contents/MacOS/universalJavaApplicationStub
dos2unix: converting file target/Notificator/Notificator.app/Contents/MacOS/universalJavaApplicationStub to Unix format...
$ target/Notificator/Notificator.app/Contents/MacOS/universalJavaApplicationStub                                                                                                                                     1.2.1
Hello World!

after dos2unix, the application works.
provided universalJavaApplicationStub's EOL is wrong.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • JavaPackager version: 1.6.7
  • OS version: macos 11.6.6
  • JDK version: 1.8.0_291
  • Build tool:
    • Maven
    • Gradle

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedIssue fixed and release pending

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions