Thanks for the response but my problem is not about writing applet code...
but it is about writing a build.xml for executing the applets.. i wrote a
build for compiling and running java stand alone programs.. but now i want to
write a build for executing a simple java applet.

eg. for running a compiled java application,

  <target name="run" description="to Compile and run the demo"      
depends="compile">
       <java             
            classpath="./build;."
            classname="Mypgm"/>
       <echo message="Execution Success"/>
  </target>

I want to know, similarly how to run a compiled applet pgm, using build.
Hope you understood my problem now..

Thanks for the concern,

Vimi Soman



> >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]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to