Hi, Running Applet in Command Line is simple. First, Embed the following code in the applet file as a multiline comment. Ex: your applet class file name is SampleApplet.class /* <applet code="SampleApplet.class" CodeBase="" width=300 height=400></applet> */ in the Command Line, c:>appletviewer SampleApplet.java
Hi mike, Let me answer you in a very simple so that you can understand. First write a applet. Save it in .java. And then compile it from the command line with javac applet.java and then execute it with this command appletviewer applet.java. But i hope you are doing all this after seeting the class path. After setting the path you can use this. Suppose you have saved your file in c:/applets folder. Go to that folder in dos prompt like this c:/applet> javac applet.java enter and then c:/applet> appletviewer applet.java enter I hope this helps you and type inside your java code either on top or on bottom. /*<applet code=applet.java width=100 height=100> </applet>*/ This recognizes the code as applet abhinav
straws are for suckers. tiny ads are for attractive people.
Free, earth friendly heat - from the CodeRanch trailboss