Friday, March 12, 2010

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"


Name it index.html

2. Launch applet viewer:

appletviewer index.html

3. That's it


Post a Comment

Your opinion is very appreciated, thank you!