Closed rememberber closed 2 months ago
Hi @rememberber! Please, could you provide Maven output and plugin configuration?
Hi @rememberber! Please, could you provide Maven output and plugin configuration?
Hi @rememberber! Please, could you provide Maven output and plugin configuration?
It (the .app file)works well on macOS 14,but can not open the .app file on macOS 15(the newest macOS recent released by Apple)
Same problem with my customers: after upgrading to MacOS 15 the app doesn't start anymore.
Hi @rememberber and @amariottini!
Are you able to run your app from BASH executing your.app/Contents/MacOS/universalJavaApplicationStub
on MacOS 15?
And, please, look into Console app and check if there's any error in logs
Sorry, I can't test on MacOS as I don't have one anymore
@rememberber, on your attached image, what does this message say? Could you translate it?
Hi @rememberber! Please, could you provide Maven output and plugin configuration?
io.github.fvarrui javapackager 1.7.5 true com.luoboduner.moo.tool.App true
<vmArgs>--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</vmArgs> </configuration> <executions> <execution> <id>bundling-for-mac</id> <phase>package</phase> <goals> <goal>package</goal> </goals> <configuration> <platform>mac</platform> <createTarball>true</createTarball> <additionalModules>jdk.crypto.ec,jdk.charsets</additionalModules> <additionalResources> <additionalResource>${name}.l4j.ini</additionalResource> </additionalResources> </configuration> </execution> </executions> </plugin>
I can't see in your POM if you are bundling a JRE
Hi @rememberber! Please, could you provide Maven output and plugin configuration?
io.github.fvarrui javapackager 1.7.5 true com.luoboduner.moo.tool.App true
<vmArgs>--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</vmArgs> </configuration> <executions> <execution> <id>bundling-for-mac</id> <phase>package</phase> <goals> <goal>package</goal> </goals> <configuration> <platform>mac</platform> <createTarball>true</createTarball> <additionalModules>jdk.crypto.ec,jdk.charsets</additionalModules> <additionalResources> <additionalResource>${name}.l4j.ini</additionalResource> </additionalResources> </configuration> </execution> </executions> </plugin>
I can't see in your POM if you are bundling a JRE
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.7.5</version>
<configuration>
<bundleJre>true</bundleJre>
<mainClass>com.luoboduner.moo.tool.App</mainClass>
<generateInstaller>true</generateInstaller>
<vmArgs>--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</vmArgs>
</configuration>
<executions>
<execution>
<id>bundling-for-mac</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<platform>mac</platform>
<createTarball>true</createTarball>
<additionalModules>jdk.crypto.ec,jdk.charsets</additionalModules>
<additionalResources>
<additionalResource>${name}.l4j.ini</additionalResource>
</additionalResources>
</configuration>
</execution>
</executions>
</plugin>
I tried "codesign --force --deep --sign ./universalJavaApplicationStub", got "error: The specified item could not be found in the keychain."
@rememberber, on your attached image, what does this message say? Could you translate it?
"The Application can't open"
Hi @rememberber and @amariottini!
Are you able to run your app from BASH executing
your.app/Contents/MacOS/universalJavaApplicationStub
on MacOS 15?And, please, look into Console app and check if there's any error in logs
Last login: Thu Sep 19 23:32:08 on ttys000
zhoubo@zhoubodeMacBook-Pro ~ % /Users/zhoubo/Downloads/MooTool.app/Contents/MacOS/universalJavaApplicationStub ; exit;
zsh: killed
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Please, can you try to build your app using macConfig.macStartup=ARM64
or UNIVERSAL
to use a compiled version of universalJavaApplicationStub
? Maybe there's a security issue related to MacOS 15 and BASH scripts
I have had experienced the same issue, however, using the macStartup property with UNIVERSAL value resolved the issue. @fvarrui Thank you for the idea! Appreciate your help very much!
Successfully resolved! (using the macStartup property with UNIVERSAL) Thank you , Mr.Edge : )
Maybe It would be a good idea to set UNIVERSAL as the default value for macStartup property
Solved macStartup = UNIVERSAL but now I have another error, I'll open a new issue.
I think we can close this issue
I'm submitting a…
Short description of the issue/suggestion:
Steps to reproduce the issue/enhancement:
What is the expected behavior?
What is the current behavior?
Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. related issues, suggestions how to fix, links for us to have context)