Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to pass system properties to Java applet launched from HTML

Here is my applet:

<applet id="MyApplet" 
    code="com.my.MyApplet"
    archive="my.jar"
    myscript>
</applet>

How would one pass "-D" properties to this applet (similar to 'java -Dprop=val ... ' from a java launcher) ? I would like to pass some java security properties for this applet when launched.

like image 726
John Avatar asked Nov 09 '10 05:11

John


1 Answers

You can use a special param to pass -D values to Applets.

<param name="java_arguments" value="-Dsun.java2d.noddraw=true">

You can find the documentation here

like image 147
Steve K Avatar answered Dec 08 '22 05:12

Steve K