Pass parameters to the Applet JVM (WIN) (this howto is deprecated)Tag(s): DEPRECATED


It's possible to pass some parameters to the JVM in Applet but these have to be set in the browser and cannot be controlled by your applet. Each user that loads your applet has to adjust the JVM args themselves.

Open the Java control panel (in Windows: Start > Control Panel > Java) and select the Java tab. Press View button of the Applet Runtime Settings, and add the required parameters in the 4th column, it is editable event if it's grayed.

You have to make sure that that the parameter you supply are correct, otherwise your browser will die when it tries to open the first applet.

This can be useful to set a JVM property to resolve a compatibilty problem with graphic card like in this bug report : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4839812.

You can force the language used in the Java console. In java control panel - java tab, you set a parameter for JRE Applet runtime.

  • Specify -Duser.language=en to override the default locale in java control panel -> java tab, you set a parameter for JRE Applet runtime.


    blog comments powered by Disqus