jQuery in Action, 2nd edition*
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: 41104
    
  45
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: 41104
    
  45
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: 41104
    
  45
"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: 41104
    
  45
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How run aaplet through ant.
 
Similar Threads
making ant run using command line
Call ant script through java file
How to use ant to build war in command line
Executing DOS commands through ANT
Running ANT - Out of environment space