Java Path Set

Way 1: Setting using System properties

Step 1: Right click on computer – > properties – > Advanced system settings – > Advanced – > Environment Variables – > User variables.

Step 2: Create New and type as follows,

variable: CLASSPATH

value : c:\Program Files\Java\jdk1.6.0\jre\lib

variable: JAVA_HOME

value : C:\Program Files\Java\jdk1.6.0

variable: PATH

value : C:\Program Files\Java\jdk1.6.0\bin;


Way 2: Setting in the Command prompt

Step 1: Just go to start and type cmd, then command prompt will be opened.

Step 2: Now type as follows,

set JAVA_HOME = C:\Program Files\Java\jdk1.6.0

set PATH = %PATH%;C:\Program Files\Java\jdk1.6.0\bin;

set CLASSPATH = c:\Program Files\Java\jdk1.6.0\jre\lib

Step 3: Check by typing javac in the command prompt.

Before Path setting:


After path setting:


1,598 total views, 3 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.