modified HTML source:

<embed  src="SwitcherEaiJava.wrl" width="400" height="400"/>
<object class="SwitcherEai.class" codetype="application/java" height="32" width="400"/>

modified Java source: SwitcherEai.java


original HTML source:

<APPLET CODE="switcher.class" HEIGHT="32" WIDTH="400" MAYSCRIPT>
</APPLET>
<EMBED SRC="switcher.wrl" WIDTH="400" HEIGHT="400">

original reference: http://www.web3d.org/technicalinfo/specifications/ISO_IEC_14772-All/part2/javaBind.html#Examples