answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

we write as:

C:\java\bin>javac TestApplet.java

then

we do

C:\java\bin>edit Test.html

then we write in html

<applet code = TestApplet.class width=500 height=500><\applet>

C:\java\bin>appletViewer Test.html

then we get output of program

here TestApplet is name of class

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

you embed them in the HTML code with the tag <applet>.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Embed element

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you compile applet programs in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Small Java-based programs are called?

Java applets


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


What is a Java applet?

PCH answer small Embedded Java Program.


What is a Java program that can be embedded called?

Applet


What is A defense against a hostile Java 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.

Related questions

How do you run and compile a java applet program?

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.


What are the kinds of java programs?

the two types of java programs are Applet and application programs


Small Java-based programs are called?

Java applets


Describe java applet?

applets are small programs that can be run on a browser's window or an applet viewer.


How do you compile java programs using windows vista text pad?

How can I compile java programs using windows vista text pad?


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


What are the two types of programs?

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.


When an applet become an applet?

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


What is the DOS command applet?

There is nothing called DOS applet.. You can run Java applet from DOS..


What is an important difference between writing a Java application and a Java applet?

A Java applet is embedded within a web page, while a Java application will run directly on your computer.


Can be used the programs in Java compiled under Windows XP with Windows 8.1?

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.


What is a Java applet?

PCH answer small Embedded Java Program.