modified HTML source:

<embed  src="BoxEaiJava.wrl" height="300" width="300"/>
<object class="BoxEai.class" height="1" width="1"/>

modified Java source: BoxEai.java


original HTML source:

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

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