I have a single .jar file that I create by using the runnable .jar file export function in Eclipse. This file runs flawlessly when you just download it and run it. Now I'm trying to embed it in an HTML file, but having trouble.
Here is the page where I attempt to embed the .jar file. I could not make it run on it's own, but If I took the Main.class file from the bin/ directory of my Project and included that too, it almost works.
<html>
<head><title>Voronoi Cells</title></head>
<body>
<applet code="Main.class" archive="Voronoi_Standalone_Local.jar" width="600" Height="500">
</applet>
</body>
</html>
With this arrangement, in Chrome, the applet shows, but the framerate is only around 1 fps.
It crashes Firefox.
It works fine it Safari!
Who cares what it does in IE.
What is the correct applet tag I should use? I would prefer to reference only the single standalone .jar file if possible. Why is the framerate so bad in Chrome?