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

runJvm gradle task doesnt work on windows 10,\jdk1.8.0_221 #4

Open
typedpath opened this issue Feb 8, 2022 · 3 comments
Open

runJvm gradle task doesnt work on windows 10,\jdk1.8.0_221 #4

typedpath opened this issue Feb 8, 2022 · 3 comments

Comments

@typedpath
Copy link

./gradlew --info runJvm fails with : Unrecognized option: -XstartOnFirstThread
I believe this -X option is available on mac but not windows
this workaround works:
./gradlew clean bundleJar
java -classpath ./build/minigdx/minigdx-game-template-jvm.jar your.game.Main

@dwursteisen
Copy link
Collaborator

Thank you for reporting.

I took some time to update the project to take this issue in account.

Can you clone this repository : https://github.com/dwursteisen/minigdx-game-template and un gradlew runJvm and come back to me to tell me if it's working or not?

I change the gradle plugin to add the option only on MacOS but as I don't have any windows to test, I can't be sure that the issue is fixed :P

thanks!

@kles4enko
Copy link

kles4enko commented May 18, 2023

Hello.
Neither this repo or https://github.com/dwursteisen/minigdx-game-template cannot run JVM target on Mac (m1). Have no idea where to add '-XstartOnFirstThread' due to default gradle application plugin is wrapped by custom one ;(

@mrlem
Copy link

mrlem commented May 29, 2023

Can you clone this repository : https://github.com/dwursteisen/minigdx-game-template and un gradlew runJvm and come back to me to tell me if it's working or not?

@dwursteisen I'm experiencing the exact same issue on Ubuntu, so as you had no feedback on this, I took the liberty to give it a try:

  • the project looks rather different (modularized + includes an android module)
  • runJvm now runs perfectly 👍

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

No branches or pull requests

4 participants