Friday, October 23, 2009

How to Configure Path of Java on Windows

In this post, I assume that all of you have downloaded and installed Java Developement Kit (JDK 2.0 or above) . If java already installed on your computer but you still can’t use the command like ‘javac’ or ‘java’ on your command promt. Maybe you haven’t set the classpath of the java itself.

These are some ways to activate java command on your command prompt :

  1. First of all, make sure you have already installed JDK 2.0 that can be downloaded at www.java.sun.com free.
  2. And then, see at the address where you put the installed files. The default path is at C:\ C:\Program Files\Java\... After that, see where the bin folder exist.
  3. When you’re already active in C:\Program Files\Java\jdk1.6.0_10\bin, copy the address.
  4. And then, double click on My Computer, choose properties
  5. Activate the advanced tab, and click on environment variables.

  1. Find path or classpath or if they are not exist, you can create the new one with its name.


  1. Now, edit on the path or classpath. Type the semicolon (;), and then followed by paste the ‘C:\Program Files\Java\jdk1.6.0_10\bin’.


  1. Click OK, and now you can try the javac command on your command promt. Just try it! Java is so full of fun if you dare to love it.. J

1 comment: