AWT Environment Setup - AWT (Abstract Window Toolkit)

How to setup AWT environment?

In this section, we will discuss on how to download and set up Java on your machine. Below are the steps to be followed to set up the environment.

Java SE is available for free from the link Download Java. Therefore, you should download a version depending on your operating system.

Follow the instructions for downloading java and run the .exe for installing Java on your machine. After installing Java on your machine, you should set environment variables to point to correct installation directories:

Setting up the path for windows 2000/XP:

Assuming that 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 windows 95/98/ME:

Assuming that you have installed Java in c:\Program Files\java\jdk directory:

  • Edit the 'C:\autoexec.bat' file and add the following line at the end:'SET PATH=%PATH%;C:\Program Files\java\jdk\bin'

Setting up the path for Linux, UNIX, Solaris, FreeBSD:

Environment variable PATH should be set to point where the java binaries are installed. You can refer to the shell documentation for doing this.

For example, if you use bash as your shell, then you should add below line to the end of your '.bashrc: export PATH=/path/to/java:$PATH'

Popular Java Editors:

A text editor is needed to write a Java program. Many sophisticated IDE are available in the market, but for now, you can consider one of the following:

  • Notepad: On Windows machine, any simple text editor like Notepad (Recommended for this tutorial), TextPad can be used.
  • Netbeans: Netbeans is a Java IDE which is an open source tool available for free. You can download it from
  • Eclipse: eclipse is also a java IDE developed by the eclipse open source community and you can download it from

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

AWT (Abstract Window Toolkit) Topics