Pr.Pg Next Pg

Environment Setup tutorials

  • In computer program and software product development, the development environment is the set of processes and programming tools used to create the program or software product.

  • The term may sometimes also imply the physical environment. An integrated development environment is one in which the processes and tools are coordinated to provide developers an orderly interface to and convenient view of the development process.

  • Similar to other Java technology programs which are compile using javac compiler, servlet also need to compile using javac compiler, than servlet are deployed in a configured web container for execution.


This development environment setup involves following steps

  • Setting up Java Development Kit(JDK) also called Java Software Development kit(SDK) you requires following steps:

  1. Goto Java SE download site

  2. Click the "Download" button under "JDK" of "Java SE 7".

  3. Choose your operating platform, e.g., Windows x86 for 32-bit Windows OS or Windows x64 for 64-bit Windows OS.

  4. Run the downloaded installer (e.g., "jdk-7"), which installs both the JDK (Java Development Kit) and JRE (Java Runtime). By default, the JDK will be installed in directory "C:\Program Files\Java\jdk1.7.0" and JRE in "C:\Program Files\Java\jre7". 

  5. Now for setting the PATH environment variable in Windows 2000/XP/Vista/7/8.

Click "Start" button "Control Panel" "System" (Vista/7/8 only) "Advanced system settings".

Switch to "Advanced" tab "Environment Variables..."

In "System Variables" box, scroll down to select "PATH" "Edit..." and past "c:\Program Files\Java\jdk1.7.0\bin in variable value field and place the semi-colon (;) for separaction from other variable value.

  1. On Unix, Linux, Solaris, etc, if the SDK is installed in /usr/local/jdk1.7.0 and you can use the C shell, you would put the following code into your .cshrc file.

setenv PATH /usr/local/jdk1.7.0/bin:$PATH

setenv JAVA_HOME /usr/local/jdk1.7.0

  1. Alternatively, if you use an Integrated Development Environment (IDE) like Netbeans, Borland JBuilder, Eclipse, IntelliJ IDEA or JCreator, compile and run a simple program to confirm that the IDE knows where you installed Java.

Pr.Pg border                                              Next Pg