>From : http://java.sun.com/docs/books/tutorial/deployment/applet/index.html
In order to load an applet in a web page, you must specify the applet class with appropriate applet tags. A simple example is below: <applet code=AppletWorld.class width="200" height="200"> </applet> For development and testing purposes, you can run your applet using the lightweight appletviewer application that comes with the JDK. For example, if AppletWorld.html is the html file name, then you run the command as appletviewer AppletWorld.html You can use ANT to compile your applet Java files. See :http://ant.apache.org/manual/CoreTasks/javac.html This javac task itself must be written in a build.xml file http://ant.apache.org/manual/using.html ANT also has 'exec' task which can execute any commands. So appletviewer command can also be called from ANT's build.xml. Hope this helps. -Prashant On Tue, 2007-05-01 at 14:49 +0550, vimisoman wrote: > hi all!! > i am new with ant. For one of my projects, i need to write a simple build.xml > for compiling and running java applets.. i am able to compile those applets > but don't know how to run those.. can anyone help me in writing the code for > running applets.. I searched in net for a sample code for the same but didn't > had good luck.. Hoping to have some here.. > > Thanks in advance, > > Vimi Soman > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- -Prashant Don't upload, just share : www.dekoh.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]