This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

This plugin has been closed and is no longer available for download.

Java Applet Embed


(NOTE: This plugin was tested with WordPress 3.0.5 but is likely to be
compatible with any WordPress after 2.5 including the latest 3.2)

If you’ve ever tried to embed a Java applet in a post or page by inserting
your usual <applet> or <object> tags, you would have noticed that
WordPress doesn’t recognize the tags and the tags disappear. This plugin
supports new shortcodes permitting WordPress to recognize and properly render
the applets.

You can choose among three possible applet-loading modes:

  1. Inline, loaded immediately.
  2. Inline, loaded only when the user clicks. This one is great for letting
    your visitors control whether to load the JVM or not.
  3. Popup window, loaded only when the user clicks.

You can reference your JAR archive with any full URL, even on another web
site. And you can even upload the JAR into WordPress using the Media
Library and then reference the JAR file as you would any other image, video,
or audio.

Thanks to the integration of Oracle’s Deployment

, it works for multiple types of browsers and can offer to download the Java
Plug-in (this probably needs more testing) or update it if the required JVM
version doesn’t match (this feature hasn’t yet been implemented but it easily
could be, if there is demand.)

It is based on the great work done by
ahmattox on his
WordPress Processing Embed.
In fact, it works almost exactly the same way and offers the same features.


Look at the Other Notes


You’re welcome to fork this code at
and request pulls.
I’ll try to release regularly to


Global Settings

First, you can optionally set some global default settings for all applets by
visiting the “Java Applet Embed” settings page in the Administration screens.

JAR code

Then, you need to make your applets’ Java code accessible. Either, make the
JAR archive(s) available from an URL not managed by WordPress (even on some
external web site), or upload the file using the WordPress Media Library, as
you would any other image, video, or audio file.

For each applet

For each Java applet, simply add the shortcode to the content of the appropriate
post or page. Multiple applets are allowed.

The most basic format is:
[applet code=”your.applet.ClassName” file=””]
This shortcode is in non-enclosing form.

You can override global default settings by specifying ‘width’, ‘height’,
or ‘method’ attributes in the shortcode, where the method can be ‘inline’,
‘onclick’, or ‘popup’.

By using the enclosing form of the applet shortcode, you can specify “alternate
content” and, optionally, applet parameters. The enclosing format is:
[applet code=”your.applet.ClassName” file=””]
[param name=”paramName” value=”paramValue”]
alternate content

Alternate content is used differently depending on the loading method of the
applet: for the ‘popup’ and ‘onclick’ methods, alternate content will be
wrapped in a link and displayed for the user to click; for the ‘inline’
method, it will only be displayed if Java is not installed.


[applet code=”us.huyz.SlickApplet” file=””
method=”popup”]Popup the applet →[/applet]

Example (Note files/ for multisite):

[applet code=”de.mud.jta.Applet” file=””
width=”1000″ height=”400″ method=”onclick”]
[param name=”config” value=””]
[param name=”Terminal.size” value=”[112,24]”]

← Load the applet →


Details about shortcodes

As with all WordPress shortcodes, you cannot
mix shortcodes
in enclosing form and non-enclosing (a.k.a. “unclosed”) form.

Either do
but don’t mix and match within a single post or page.

Unlike with true WordPress shortcodes, there is no restriction about square
attributes of [param] shortcodes. Thus, this is allowed:
[param name=”Terminal.size” value=”[112,24]”]


  • Administration settings
  • Editing post or page with shortcodes
  • The rendered post or page. An applet with the 'onclick' loading method first only shows alternate content for the user to click.
  • The Java virtual machine loading, after the user clicks to load the 'onclick applet'.
  • The rendered post or page with a sample applet.


The installation procedure is as usual:

  1. Upload the ‘java-applet-embed’ folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.


Why use the ‘onclick’ loading method?

Loading a Java applet takes time, especially the first time the Java plug-in
is loaded by the browser and especially the first time the JAR file is
downloaded by the browser. Your users may be annoyed if your page immediately
does all this without their initial confirmation and causes delays.

Why use the ‘inline’ loading method?

The ‘onclick’ and ‘popup’ methods require users to run Javascript, while the
‘inline’ method doesn’t. These days, everyone should be running Javascript
but who knows what your crazy requirements.

Will this plugin work with WordPress 2.x or 3.1?

It’s very likely to work for other versions of WordPress, so give it a shot,
and let me know how it works out.

How can I upload other supporting files such as config files?

Right now, that’s not supported. Only JAR files can be uploaded to WordPress.
You have to place your supporting files somewhere else: outside of the
management of WordPress or some other web site.
If there’s enough user demand, I’ll look into supporting more file types for

Is there a way to specify a minimum Java version?

Not right now. I don’t know if there’s demand for it.

Contributors & Developers

“Java Applet Embed” is open source software. The following people have contributed to this plugin.


Translate “Java Applet Embed” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


  • Just updates to web page. No code change.


  • Just updates to README. No code change.