simple java program
download jdk1.5.0
here
http://java.sun.com/javase/downloads/index_jdk5.jsp
*install
default location
e.g. drive C:
C:\Program Files\Java\jdk1.5.0_02
*configure
right click my computer
properties
advanced
environment variables
system variables
path
press the edit button
go to last tab of the path in the box
type this ;C:\Program Files\Java\jdk1.5.0_02\bin
press ok
hold the windows logo on your keyboard and press r
run dialog box appear
type cmd command prompt appear
type this java -version
(if your configuration is right)
your java version information will appear
*testing
*create newfolder
e.g. c:\javaproject
open notepad
type this
-----------------------------------------
class Example {
public static void main(String args[]) {
System.out.println("first java program.");
}
}
--------------------------------------
save this as Example.java
in c:\javaproject
running
hold the windows logo on your keyboard and press r
run dialog box appear type cmd command prompt appear
c:\documents and settings\NerolfloreN>
type this
cd c:\javaproject
press enter
c:\javaproject>javac Example.java
press enter
(error information will appear if there's one)
(if not)
c:\javaproject>
(will appear)
type
java Example
press enter
output
----------------------------------
first java program.
-----------------------------------
or you can also install JcreatorLE ( free version )
you must install first the jdk1.5.0
http://www.jcreator.com/
book for just beginning java programming
java a beginner's guide third edition
by herbert schildt
i hope this help