modified HTML source:

<embed  src="ViewSwitchEaiJava.wrl" height="300" width="300"/>
<object class="ViewSwitchEai.class" codetype="application/java"/>

modified Java source: ViewSwitchEai.java


original HTML source:

<embed src="viewswitch.wrl" height="300" width="300">
<applet code="viewswitch.class" mayscript height="1" width="1"></applet>

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