Quick question: Is there a way to make my executable jar file run with certain jvm arguments by default? I don’t mean by tweaking my current vm, I mean having the arguments be there by default for a specific jar. That way, I could maybe run the concurrent mark and sweep algorithm for my game jar, and not some other jar. Haven’t been able to find anything in a google search. I know Minecraft lets you do this, but Minecraft first opens a launcher before firing up the jvm, and the launcher is a native executable.
Specifically, I want to pass -XX:+UseConcMarkSweepGC by default.