First install JDK (here assumes installation JDK1.4.1)
My installation path is C: /J2SDK1.4.1
Set 3 System Environment Variables: Java_Home, Path, ClassPath:
The new Java_Home: J2SDK installed path, not /, the same end. Such as
C: /j2sdk1.4.1
Edit PATH: Plus:
.;% Java_home% / bin /;
Add ClassPath:
.; Java_home% / lib / Tools.jar;% java_home% / lib / dt.jar;% java_home% / bin
Setting method:
Win9x: Editing the root directory of the system under the root directory, plus
Set java_home = above Javahome
SET PATH = above the PATH
Set classpath = ClassPath or more
Restart. Win2000 / XP / 2003: My Computer -> Properties -> Advanced -> Environment Variables. Save, restart.