Extension:Java Applet

This Mediawiki extension adds Java applets using the "java_applet" tag. The Java binary must be uploaded to the wiki (either class file or jar file). You may need to add 'jar' and 'class' to the $wgFileExtensions variable in LocalSettings.php.

Arguments

 * code, java class file (required)
 * width, applet width (required)
 * height, applet height (required)
 * archive, jar file name (required)

Example


Installation
To install, copy the code below to "JavaApplet.php" and put it in your Mediawiki extensions directory and add... include("extensions/JavaApplet.php"); ...to your LocalSettings.php file.

This is my first try at coding php so I don't promise it to be secure, easy to use or even work. Use this program at your own risk.

To Do
Automatically detect the 'code' value from jar files with properly setup manifests.

Question: I installed the files in my directory and added the LocalSettings.php extension. The Java Applet extension seems to work. However I do not have "PegGame.class". Where do I get a test file and where do I upload it to?