开发者

Embed Java applet in a website

Recently, I had came across an open source a Java applet. I wanted to know is there somehow I could create a script that could be distributed and the applet could be embedded in any website?

I have been able to inject JQuery and JS scripts into websites by placing a <script> tag po开发者_开发问答inting to a Javascript file and placing it in the header of the page but I don't know how a java applet can be injected.


You can take a look at corresponding tutorial page: http://download.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html

General steps are the following:

  1. Build applet JAR file
  2. Create a JNLP file, which describes your applet
  3. Create web page, which includes script, which starts applet
  4. Deploy all these artifacts on some web server
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜