开发者

Embedding a java applet in Wordpress

I have an applet that works alright on this page. It just references the .class file. (unfortunately, I have lost the source, and the jar files.)

I want to reference it here, however it does not start. Probably because it cannot find the class file. the applet tag looks like this

<applet code="/applets/language/LanguageEngineApplet.class" width="11开发者_C百科74" Height="402">
<embed code="/applets/language/LanguageEngineApplet.class" width="1174" height="402" type="application/x-java-applet" pluginspage="http://www.java.com/en/download/manual.jsp"/>
</applet>

I know the .class file is there, because I can link to it. So I'm stumped as to why this won't work.


I just put the applet in a page on it's own. The problem was not my Java version, it was the class name and the path and the package interacting somehow. I had to put it in a directory on its own, with the html file that referenced it in that directory.


You may want to look at the Java Deployment Toolkit


If you do decide to embed a Java applet inside WordPress and not outside, I just released a new plugin that easily allows you to do that. It uses shortcodes.

http://huyz.us/2011/the-easiest-way-to-embed-java-in-wordpress/

Hmmm, maybe I have to support uploading *.class files in your case. Let me know, if you need that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜