Java – Environment Variables

After you install Java SDK in your Windows system, here are some things that you should do.

Right-Click My Computer and go to Properties.

Then click Advanced and the Environment Variables button.

Add a new Environment Variable called JAVA_HOME and enter the path where the java software is installed.

By Default: C:\Program Files\Java\jdk1.5.0\

Also ,

append the following to the PATH variable after a semi colon.

C:\Program Files\Java\jdk1.5.0\bin;

Now wherever you want you can write your java file and compile & Run it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s