Skip to content Skip to sidebar Skip to footer

How To Start Applet In Eclipse By Providing Eclipse With An Html File?

I have written java applet programs under eclipse and run them with help of 'run configuration' to provide applet parameters. I have also written a few html files containing

Solution 1:

First follow Justins advice. The look at this link for understanding how to pass paramters to an applet thru html. http://www.brainjar.com/java/parameters/

Snippet from the site.

<appletcode="MyApplet.class"width="300"height="100"><paramname="background-color"value="#ffffff"><paramname="foreground-color"value="#000000"></applet>

Solution 2:

A new answer to your edited question. Copied from the internet and updated by me to fit Eclipse Indigo:).

First you will have to go to preferences in Window/Web Browser and set Eclipse to Use internal Web > browser.

After that you can open the HTML file from the navigator tree using right click/Open With/Web Browser.

Solution 3:

Does the applet have a .jar file? If so you can put the .jar file and the HTML in the same folder, and then open the HTML file in a browser of your choice. It works for me. It's just a different way to open.

Post a Comment for "How To Start Applet In Eclipse By Providing Eclipse With An Html File?"