Java Installation Guide

Embed Size (px)

Citation preview

  • 8/13/2019 Java Installation Guide

    1/13

    1Java Installation Guide

    JAVA DEVELOPMENT

    ENVIRONMENT SETUP GUIDE

  • 8/13/2019 Java Installation Guide

    2/13

    2Java Installation Guide

    Table Of Contents:

    Know your System Requirements:.......................................................... 3Prerequisites:............................................................................................ 6Installing JDK:........................................................................................... 7Installing Eclipse IDE:............................................................................ 11Troubleshooting:.................................................................................... 13

  • 8/13/2019 Java Installation Guide

    3/13

    3Java Installation Guide

    Know your System Requirements:

    If you are using Windows 7:

    Click on start or press windows keyright click on Computerselect

    Properties.

    Here you will find the System settings as below:

  • 8/13/2019 Java Installation Guide

    4/13

    4Java Installation Guide

    From the above window you can find out whether your machine is 64 bit or 32 bit machine.

    On a Windows XP OS follow the following steps:

    from the start menu

    Go to Control Panel

    Go to System.

    Here you will find the System settings as below:

  • 8/13/2019 Java Installation Guide

    5/13

    5Java Installation Guide

    As you can see the above Machine is a 32 bit machine as it is showing Microsoft Windows

    XP Professional.

    For a 64 bit machine it will show Microsoft Windows XP Professional X64 Edition.

    All the softwares viz. Eclipse,Android SDK,JDK will be

    downloaded for the type of machine found(viz 32 bit or 64 bit).

  • 8/13/2019 Java Installation Guide

    6/13

  • 8/13/2019 Java Installation Guide

    7/13

    7Java Installation Guide

    Installing JDK: Go to the URL:http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Then click on Download under the JDK section.

    http://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/index.html
  • 8/13/2019 Java Installation Guide

    8/13

    8Java Installation Guide

    Choose the appropriate option that is as per the machine you are installing the JDK viz. 32 bit

    machine or 64 bit machine.

    Once the download is over. Start the .exe file by double click on it.

  • 8/13/2019 Java Installation Guide

    9/13

    9Java Installation Guide

    Now click on Next.

    Now click on Next.

  • 8/13/2019 Java Installation Guide

    10/13

    10Java Installation Guide

    Once done with the Installation of JAVA.

    We need to set the Environment variables in order to use JDK with Eclipse. Go to MyComputer from the startup menuGo to PropertiesGo to Advanced System

    SettingsFrom the PopupGo to Environment Variables.

    Click on Add.

    Name the Environment Variable as path.

    Place the value of the JDK installation folder on your machine till the folders bindirectory. For ex: C:\Program Files\Java\jdk1.7.0_05\bin

    Create another environment variable name it as JAVA_HOME and set the values asC:\Program Files\Java\jdk1.7.0_05 i.e. excluding the bin directory.

    Once we have created the Environment variables, we are done with the process of JDK

    installation.

  • 8/13/2019 Java Installation Guide

    11/13

    11Java Installation Guide

    Installing Eclipse IDE:

    We recommend using Eclipse IDE for Java Developers (Helios). You can download it here:

    Download "Eclipse IDE for Java Developers (92 MB)" fromhere http://www.eclipse.org/downloads/

    Just check before downloading whether your OS is 64 bit or 32 bit,

    Depending upon the OS, download the version that meets the machine requirements.

    This is a zip file and does not require installation. Just copy the eclipse folder into yourprograms directory.

    Unzip this file.

    http://www.eclipse.org/downloads/http://www.eclipse.org/downloads/http://www.eclipse.org/downloads/http://www.eclipse.org/downloads/
  • 8/13/2019 Java Installation Guide

    12/13

    12Java Installation Guide

    After unzip what you fill find in the unzipped folder is something like this:

  • 8/13/2019 Java Installation Guide

    13/13

    13Java Installation Guide

    Troubleshooting:

    If after the installation of JDK, you find an error like below:

    You have made the wrong software installation i.e. the Eclipse IDE and the JDK are incompatible.An Example can be that the JDK was downloaded for 64 bit machine and Eclipse for a 32 bitmachine or Vice versa or both could not be downloaded for the targeted machine.

    In order to resolve this do an Uninstall of JDK from Add/Remove Programs and download a newEclipse and JDK for the Target Machine (64 bit or 32 bit) and follow the steps as mentioned fromthe beginning of the document.