1. first you type your applet programm in notepad in save it as classname.java in the bin directory. example: if the class name is A then save it in jdk1.5->bin as A.java
2. now create a HTML file in notepad as given below
and save it as in bin by A.HTML
NOTE: applet code should be always classname.java and also save with same classname.HTML
3. now go to strart->run type cmd press enter the dos screen will open.
4. give the location where you saved the file as
D: CD jdk1.5 press enter
CD bin enter
javac A.java
appletviewer A.HTML
Java applets
Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC
PCH answer small Embedded Java Program.
Applet
One defense against a hostile java applet is to disable applet functionality on the computer. This would prevent all applets - hostile, benign, and beneficial from executing.
One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.
the two types of java programs are Applet and application programs
Java applets
applets are small programs that can be run on a browser's window or an applet viewer.
How can I compile java programs using windows vista text pad?
Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC
2 types of java programs are application and applet application program is the one which run on ur computer under the O.S of ur computer. applet is an application designed to be transmitted over the internet and executed java compatible web browser.
Any Java class that extends java.applet.Applet is an applet. http://java.sun.com/j2se/1.5.0/docs/api/java/applet/Applet.html
There is nothing called DOS applet.. You can run Java applet from DOS..
It should work, yes. It really doesn't matter where you compile it - if you compile under Windows XP, you don't compile FOR Windows XP; rather, you compile for the virtual machine, which is compatible in different environments.
A Java applet is embedded within a web page, while a Java application will run directly on your computer.
PCH answer small Embedded Java Program.