Configure Java Development Environment Class Path variables

By | January 22, 2016

Learn how to Configure Java Development Environment Class Path Variables in Linux, Unix, Windows XP, 7, 8 and 10

As you all know very well Java is a highly paying programming language. He also have read my article on “An Overview to Java“. Now we will move towards programming. In order to run Java on your PC, you need to set up its variable paths (ClassPath). Here you will learn how to configure Java Development Environment Class Path variables in Linix, Unix, Windows XP, Windows 7, 8, and Windows 10 :).

First you need to download the Java and run the .exe to install Java on your machine. Once you installed Java on your machine, you would need to set environment variables to point to correct installation directories. Setting Up class path variables is not a difficult task. Bellow is the step by step guide to configure java path easily with respect to operating systems.

how to configure Java Development Environment variables path in windows [howpk.com]

how to configure Java Development Environment variables path in windows [howpk.com]

Setting up the Java Path for Windows XP, Windows 7, 8 and 10:

You can use this configuration if you are running Windows Operating systems on your machine (PC).

Let, you have installed Java in c:\Program Files\java\jdk directory:

  • Right-click on ‘My Computer’ and select ‘Properties’.
  • Click on the ‘Environment variables’ button under the ‘Advanced’ tab.
  • Now, alter the ‘Path’ variable so that it also contains the path to the Java executable. Example, if the path is currently set to ‘C:\WINDOWS\SYSTEM32’, then change your path to read ‘C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin‘.

Setting Up the Path for Linux, Unix, Solaris and FreeBSD:




If you want to run Java on Linux or Unix based operating system then you need to follow this to configure the java variable path.

  • Environment variable PATH should be set to point to where the Java binaries have been installed.
  • If you use bash as your shell, then you would add the following line to the end of your ‘.bashrc: export PATH=/path/to/java:$PATH‘.

Let’s talk:

Now you have learn how to configure java development environment variables path. Now you can start programming. In next article we will make our first Java program. And we will discuss about the Basic Java Syntax, Variables, Keywords and much more in upcoming article. So, stay tuned and keep eyes on our blog, if you really want to learn :). You may also like to read Top 10 Programming Languages You should Know.

Author: Tanvir Zafar

Tanvir Zafar is a internet Entrepreneur and owner of this site and many others as well. He is student in GCUF doing BS Software Engineering. :)