Difference between revisions of "How to install Java on Windows"

From WLCS
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
# Download and install the [http://java.sun.com/javase/downloads/index.jsp#jdk Java Development Kit] (JDK)
 
# Download and install the [http://java.sun.com/javase/downloads/index.jsp#jdk Java Development Kit] (JDK)
 
# Test your install by going to Start -> Programs -> Accessories -> Command Prompt.
 
# Test your install by going to Start -> Programs -> Accessories -> Command Prompt.
# You should then see a command line interface (black screen with text). Type java and it should output a screen full of help options, and if you see this, then you are done and Java is installed. If typing java returned with error saying that the command was not recognized, then you must continue by doing the following.
+
# You should then see a command line interface (black screen with text). Type '''javac''' and it should output a screen full of help options, and if you see this, then you are done and Java is installed. If typing '''javac''' returned with error saying that the command was not recognized, then you must continue by doing the following.
# Only continue with the following steps if java is not recognized at the command line
+
# Only continue with the following steps if '''javac''' is not recognized at the command line
 
# Go to your Control Panel
 
# Go to your Control Panel
 
# Go to System
 
# Go to System
Line 9: Line 9:
 
# Add a ; (semicolon) to the end of the variable value box
 
# Add a ; (semicolon) to the end of the variable value box
 
# Add the path of the jdk's bin directory to the end of the variable value box. The path will look something like
 
# Add the path of the jdk's bin directory to the end of the variable value box. The path will look something like
       C:\Program Files\Java\jdk1.6.0_16\bin
+
       C:\Program Files\Java\jdk1.6.0_19\bin
 
# Click OK
 
# Click OK
 
# Open a command prompt by going to Start -> Programs -> Accessories -> Command Prompt
 
# Open a command prompt by going to Start -> Programs -> Accessories -> Command Prompt
# Type java and press Enter
+
# Type '''javac''' and press Enter
 
# If everything worked, then you should now see a list of java options because the command was recognized
 
# If everything worked, then you should now see a list of java options because the command was recognized

Latest revision as of 15:31, 8 April 2010

  1. Download and install the Java Development Kit (JDK)
  2. Test your install by going to Start -> Programs -> Accessories -> Command Prompt.
  3. You should then see a command line interface (black screen with text). Type javac and it should output a screen full of help options, and if you see this, then you are done and Java is installed. If typing javac returned with error saying that the command was not recognized, then you must continue by doing the following.
  4. Only continue with the following steps if javac is not recognized at the command line
  5. Go to your Control Panel
  6. Go to System
  7. Go to the Advanced tab and click on the Environment Variables button
  8. In the lower scrolldown box, edit the Path variable
  9. Add a ; (semicolon) to the end of the variable value box
  10. Add the path of the jdk's bin directory to the end of the variable value box. The path will look something like
     C:\Program Files\Java\jdk1.6.0_19\bin
  1. Click OK
  2. Open a command prompt by going to Start -> Programs -> Accessories -> Command Prompt
  3. Type javac and press Enter
  4. If everything worked, then you should now see a list of java options because the command was recognized