Is there a .jar file, or other script file, where default variables can be set?
No. I'm pretty sure there isn't. There may still be something you can do depending on what java application you are running and how you run it. If you are using the Java Plugin, for example, you can set java runtime...