Configure Java Development Environment Class Path Variables

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.
Configure Java Development Environment Class Path Variables
Configure Java Development Environment Class Path Variables
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:

1. Right-click on ‘My Computer’ and select ‘Properties’.
2. Click on the ‘Environment variables’ button under the ‘Advanced’ tab.

3. 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.

1. Environment variable PATH should be set to point to where the Java binaries have been installed.
2. 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

0 Response to "Configure Java Development Environment Class Path Variables"

Posting Komentar