Skip to content

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

@maarkeez

Description

@maarkeez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Pending

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions