Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS deployment fails when main class is in a different package #2213

Open
maarkeez opened this issue Apr 3, 2024 · 0 comments
Open

MacOS deployment fails when main class is in a different package #2213

maarkeez opened this issue Apr 3, 2024 · 0 comments

Comments

@maarkeez
Copy link

maarkeez commented Apr 3, 2024

Good morning!

I've found the following issue

Given the Hello world! project
And the main.kt file is moved to a different package com.demo
And the korge.jvmMainClassName is set to com.demo.MainKt
And run the MacOS deployment command as follows ./gradlew clean packageJvmMacosApp
When running the build/platforms/jvm-macos/game app
Then

  • Expected: it runs correctly the Hello World! game
  • Actual: it try to opens but crashes

Additional information
When running the generated jar file with the command java -jar build/libs/korge-hello-world-all.jar it works correctly.

Based on that, my assumption is that the problem is only related to the MacOS deployment in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending
Development

No branches or pull requests

1 participant