I know you can pass command-line arguments to the JVM. Try doing a google search on that. Other than that, I think the JVM has become open-source (or is in the process of becoming), so you can look...