Welcome to Java Programming.
This is a place where you can learn Java within 30 minutes. Cool!!!
First,
download java development toolkit (jdk) from:
http:\www.javasoft.com\ (Sun promoted freely)
then install on your PC. Suggest directory c:\jdk1.2.1
then
set 2 variables in your system.
PATH and CLASSPATH
Ex: PATH=C:\jdk1.2.1\bin
Ex: CLASSPATH=.;C:\jdk1.2.1\lib (Current and library)
then
make a dir.
Ex: c:\jdk1.2.1\javacourse
then copy attached files into it.
For
application (Include main)
To compile, ex: javac HelloWorld.java
To run, ex: java HelloWorld
For
applet (Not include main, your brower has it)
To compile, ex: javac MyFirstApplet.java
To create your HTML as example.
To run, ex: appletviewer MyHTML.html
or run MyHTML.html from your brower. Get it??
If
you don't get anything you expected. Simply come to
ECS Computer Club and ask Ken.
files:
6-12-handout.txt,
FirstApplet.java, FirstApplet.class
HelloWorld.java, HelloWorld.class
email:
[email protected]