Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simplest post!

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can anybody explain me the syntax of Appletviewer?
For example : I have class file called Abc.class
Please let me know how i can use appletviewer(with example) and run class file.
Thanks
Angela
 
ShawnNev
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create an html file like:
<html>
<applet code=Abc.class width=400 height=400>
</applet>
</html>
save as Abc.html
then at the command prompt run
appletviewer Abc.html
make sure that the abc.html and abc.class are in the same directory.
ie if abc.java and abc.html are in the c:\abc directory the command line would look as follows
c:\abc\appletviewer abc.html
Hope that works for you
 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi angela,

the syntax:
appletviewer <html file name>
include the class file (ABC.class in u'r case) in the html file, using the applet tag(i think u know that).
run the appletviewer using the html file name, as shown above.

regds,
Sandeep.
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi ShawnNev & Sandeep,
Thanks a lot for your help.
Regds
Angela
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic