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

applet viewer not coming up

 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I first started trying to learn Java, I think it was version 1. I downloaded and installed the SDK and was able to run the appletviewer from my programs menu. I've updated to version 1.3 and appletviewer isn't listed in my programs menu anymore. When I go to start>run> and browse to the jdk\bin folder to find appletviewer and run it, it just opens a dos window for a second and then closes it. Sorry to sound so stupid, but how do I run appletviewer in version 1.3? Thanks.
 
Tim Holloway
Saloon Keeper
Posts: 18366
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Open a DOS window
2. Type "appletviewer", hit ENTER
If the appletviewer program isn't found, add the JDK\bin directory to your path, a la:
C:> SET PATH\%PATH%;C:\JDK1.3\nin
C:> appletviewer
You should see command-line parameter options displayed in the DOS window.
 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, here's what I get when I type in appletviewer to a dos window.
Usage: appletviewer <options> url(s)
where <options> include:
-debug Start the applet viewer in the Java debugger
-encoding <encoding> Specify character encoding used by HTML files
-J<runtime flag> Pass argument to the java interpreter
The -J option is non-standard and subject to change without notice.
What do I do from here?
 
Peter Guillebaud
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There may be a quicker way, but this one works...
First make an html file that contains a refernce to your applet with for example <applet code=myApplet.class width=400 height=200></applet> and save this as myApplet.html. Then at the command type appletviewer myApplet.html
Hope this helps...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic