2

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 pointing 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.

1 Answer 1

2

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.