Campbell Ritchie wrote:Unless you write your own JVM, you can't.
No. It's much simpler than that. You only have to write your own JVM launcher !
If you feel up to the challenge, the Invocation API is where you need to start, but this is definitely not a subject for beginners.