System Variables -> New -> Variable Name: Java_Home Variable: C: /J2SDK1.4.1 System Variable -> New -> Variable Name: ClassPath Variable:.;% Java_Home% / LIB System Variable -> Edit -> Variable Name : Path plus the most in the most in the variable:% java_home% / bin;