Getting started with Java and Applets

Just follow these steps:



Download jdk from sun


Update the PATH variable in your computer

C:\Program Files\Java\jdk1.6.0_18\bin


Restart computer

In you code editor (it could be SCitE or other)

Build: F7

Go: F5



How to compile java code:

javac *.java


How to see an applet

1: Create an html file with an applet tag:


applet code="HelloWorld.class" width="100"

height="100"




Name it index.html


2. Launch applet viewer:

appletviewer index.html


3. That's it

Comments

Popular posts from this blog

Repair Dolce Gusto Circolo Leaking Problem

Root Nook Simple Touch with updated NookManager

How to Change the Gear Shift Knob of the Peugeot 306