This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41034
    
  43
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?


Ping & DNS - my free Android networking tools app
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: 41034
    
  43
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: 41034
    
  43
"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: 41034
    
  43
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.
 
Similar Threads
Call ant script through java file
How to use ant to build war in command line
making ant run using command line
Executing DOS commands through ANT
Running ANT - Out of environment space