Reputation: 159
I created a new GDX project, added all the necessary configs so that it runs the way it should be. The problem, however, is that whenever I close the game window, it displays the following error:
Execution failed for task ':desktop:DesktopLauncher.main()'.> Process 'command 'C:/Program Files/Java/jdk1.8.0_181/bin/java.exe'' finished with non-zero exit value -1
Is it something I should be worried about? And if so, what should I change in my project/configs?
You can see the screenshot of my config file below:
Upvotes: 4
Views: 297
Reputation: 3043
Nothing to worry about.
You can get rid of it by applying this config:
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
...
config.forceExit = false;
More details: https://badlogicgames.com/forum/viewtopic.php?f=11&t=13209
Upvotes: 6