Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Beginners Beginners Java Tutorials - Installing JDK

 
 

Share on Google+Share on Google+

Beginners Java Tutorials - Installing JDK

Advertisement
In this beginners java Tutorial ,We will first download, install and configure the J2SE development environment.

Beginners Java Tutorials - Installing JDK

     

In this beginners java Tutorial ,We will first download, install and configure the J2SE development environment.

Downloading and Installing J2SE Software on Windows Platform
To download J2SE for development visit http://www.java.sun.com/j2se and download J2SE on your machine. In this tutorial we have used jdk-1_5_0_06-windows-i586.exe.The java 2Platform or (JDK) can be downloaded from the sun. Formerly Known as the java Development kit ,or JDK, Downloading java is really about downloading the java 2 plat form that comes in three editions , J2ME, J2SE and J2EE , if you are learning  java, then, you should start by downloading  J2EE.

Once you have downloaded the j2se on your system, you are ready to install . In the following section we will learn how to install  jdk development environment on your machine. here are the step to install JDK on your windows machine.

Step 1

Double click the JDK down loaded file, the executable extracts the required Contents to the temporary directory and then License agreement screen  appears. On the license agreement page read and accept the license and the click the next button .

Step 2

The custom setup screen appears as follows.

Step 3

Click on the change button to change the installation directory to "c:\jdk1.5.0_06" as shown in the following screen.

and click on the "OK" button. After clicking on the "OK" button installation begins:

Step 4

In the next window installer asks for the installing the runtime as shown in the following screen:

Step 5

Click on next button install the J2SE runtime on your machine. Next screen shows the browser selection:

Click on the "Next" button.

Step 6

Once the installation is finished it shows you the final screen indications the success. Now you have successfully installed J2SE on your machine. Installer shows the following final confirmation window as shown below:

Click on the "Finish" button to exit from the installer.

Configuring the installation on windows machine:

In this Section we will add some settings to the windows environment so that the java compiler and runtime becomes available for compiling and running the java application.

Go to the control panel and double click on "System Properties" and to to the advance tab. 

and add "c:\jdk1.5.0_06" to path variable:

and click on ok button. To save the setting click on "OK" button.

This will make the java environment available for development. Open the dos prompt and type javac on the console, it should show the following output:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Administrator>java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument


C:\Documents and Settings\Administrator>

Now your development environment is ready for development.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 1, 2007

Related Tutorials

Discuss: Beginners Java Tutorials - Installing JDK   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:17
praveen pc
January 3, 2012
java

really good
Manjiri Jawlekar
March 27, 2012
java

i like java
faroos
May 25, 2012
java

I am interesting in java
adrian bonnington
June 27, 2012
JDK

yet but which file name do we click on in windows to load the java compiler / editor?
pavel das
July 14, 2012
computter

veery good
mahendra
August 31, 2012
javajdk1.5.0 free download

plz javajdk doumention process sent me
paul
January 5, 2013
Installing JDK

Hi there! Tanx for help Its good and working. Have a nice time
marora
January 28, 2014
feedback

very clear about installation steps, thnx
Hirdyanand Gour
March 1, 2014
JAVA FOR BEGINNERS

this website is really very helpful to learnning java for beginners
DMCA.com