0

I can't believe I couldn't find this on the web, I must have been using some bad search terms...

Anyway, is there any way to set some default arguments for the JVM. I'm running JRE 1.8.0_73 if it makes much difference.

The goal I am trying to achieve is attaching an agent to every instance of the JVM that starts, in this particular case an applet. I know I could start the applet from the command line and specify the arguments there but I would like to know if there is a way to globally set some command line arguments.

Thanks!

1 Answer 1

3

You can create a system environment variable named _JAVA_OPTIONS and set its value to all the default arguments you need to pass to the JVM.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.