File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes How run aaplet through ant. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How run aaplet through ant." Watch "How run aaplet through ant." New topic
Author

How run aaplet through ant.

Ratan Pawar
Ranch Hand

Joined: Jan 18, 2008
Posts: 33
How to run applet file through ant?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  68
Applets run in web browsers or in the appletviewer. In both cases you need an HTML file to start them from.

What are you trying to accomplish?
Ratan Pawar
Ranch Hand

Joined: Jan 18, 2008
Posts: 33
i write one applet file with applet tag.
when i run it using appletviewer it successfully run.
but now i want it through ant.
how i add this into xml ant file.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  68
What do you mean by "through Ant"? Do you want Ant to start appletviewer or to start a browser? There's no other way to run applets.
Ratan Pawar
Ranch Hand

Joined: Jan 18, 2008
Posts: 33
yes.i want it start through ant.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  68
"It" being appletviewer or a browser?
Ratan Pawar
Ranch Hand

Joined: Jan 18, 2008
Posts: 33
it is appletviewer.because i added applet tag into applet java file.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  68
You can use the <java> task to run the class sun.applet.Main. The name of the HTML file (or Java source file if it contains the applet tag) is passed in as a parameter using the <arg> tag.
[ May 02, 2008: Message edited by: Ulf Dittmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How run aaplet through ant.