Sticky
Sticky

Reputation: 3939

I have a Java Applet working in Eclipse but not working as embedded applet

What is the step by step process to move from Eclipse to embedding on an HTML page? I have the tags and the jar file exported but it tells me it can't find a main class. I have tried a few things but to no avail. Thank you!

Upvotes: 1

Views: 379

Answers (2)

DavidPostill
DavidPostill

Reputation: 7921

See Deploying An Applet In Under 10 Minutes :

  • Compile / build your applet's Java code and make sure all class files and resources such as images etc. are in a separate directory, example build/components.
  • Create a jar file containing your applet's class files and resources.
  • Sign your jar file if the applet needs special security permissions, for example, to be launched in a modern JRE with default settings. By default, unsigned code will be blocked.
  • Create a JNLP file that describes how your applet should be launched.

See also Deployment Toolkit 101 - Java Tutorials Blog

Upvotes: 0

satellite779
satellite779

Reputation: 121

Have you read Oracle's page on deploying a Java applet:

http://docs.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html

I would start with that and if you still have specific problems, come back to stackoverflow.

Upvotes: 1

Related Questions