Download setupjava

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Setting Up Java on Your Computer
Revised in September 7, 2007
This document helps you setup java on your own machine. It assumes that you are
using Windows XP without Java previously installed. If you are familiar with Java,
please skip it.
 An official install guide can be found at:
http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html
 Alternatively, you can follow this picture guide.
Steps to setup java:
Step 1: Download Java SDK (Software Development Kit)
1) Visit: http://java.sun.com/javase/downloads/index.jsp, Find a link like “JDK6
Update2”, click Download. JDK will be updated at times, if you find some other
higher version, that’s fine.
2) Select the platform and language, then click the “accept” ratio button to accept the
license agreement
1
3) Click “Windows Offline Installation, Multi-language”, to download the latest
version of the SDK.
Comment: Please note that you have to download the SDK, not the JRE. The JRE is
not harmful to your computer, but it isn’t enough.
Step 2: Install JDK Binaries.
1) Open My Computer and find the SDK file that you downloaded.
2) Double click the SDK file’s icon to start installation.
3) Click the “accept” button to accept the license agreement.
2
4) Click “Next” directly to install JDK to its default path.
Comment: Jot down the name of the directory in which the java SDK is being
installed. We call it your java home directory.
5) After you click “Next”, the install process starts. Wait a few seconds for it to
3
finish. Then the following screen appears, simply click “next”.
direct
6) Wait a few seconds and then click “Finish”
4
Step 3: Setup the Environment Variables
1) Open the start menu, right click the “My Computer” icon, click “Properties”.
2) Choose the “Advanced” tag, click “Environment Variables” button.
5
3) Click “New” Button, enter
6
Variable Name: PATH
Variable Value: your java home directory + “\bin”
Comment: The value should be the path where you installed JDK, plus “\bin”.
4) Click “New” again to add another environment variable.
Variable Name: classpath
Variable Value: your java home directory + “\lib\tools.jar”
Step 4: Testing our Installation
1) Now turns to test our setup.
Go to the start menu and click “Run…”. Input cmd to open the command window.
7
2) Type “java”, you should see something like:
8
3) Type “javac”, you should see something like:
4) If you can’t see this output, please type:
set path=your java home directory+” \bin”
set classpath=”.;”+ your java home directory +” \lib\tools.jar”
Then run javac, if you see the output like this, congratulations! You have
successfully install java!
9