Don't use the "-secondstart" argument. Just query the size of the heap at runtime. If it is enough then you don't need to start a second instance with the memory params specified.
Another good idea. Thanks for the input.
Why are you against a launcher stub (exe)??
You as a Mac user are asking me this? Lol.
I love pure Java apps, no exe, no nothing. Virtual byte code rules. Compiled native code is nonflexible and ancient. :-)
After all that's what java.exe is :)
But this belongs to the JVM which has to be installed anway. However my app should run on any Java enabled platform unmodified.
Perhaps you should consider WebStart?
For a game, well yes, maybe.
For game tools I prefer one clickable JAR.
@Kev: smart idea, thanks.