Setup a Java environment

Apr13
  • Share/Bookmark

Difficulty: ★☆☆☆☆

Java JDK Installation
1. Download a JDK: Java JDK6.
2. Run the installer.

Environment variables
1. Make a new environment variable called: JAVA_HOME
a. For XP: windows key + pause/break key -> “properties” -> tab “Advanced” -> “Environment Variables”
b. For Vista: windows key + pause/break key -> ‘advanced settings’ – -> tab “Advanced” -> “Environment Variables”

Click ‘New’ at “System Variables”. “JAVA_HOME” and set it to where the JDK is located i.e. C:\Program Files\Java\jdk1.6.0_14
3. Now modify the “PATH” variable and add your new variable “%JAVA_HOME%\bin;” at the start of the line. Leave the rest as is!

Checks
1. Open the command line, type: ‘Set’ to see if the environment variables are correct.
2. Type: ‘java -version’, to check which Java version is installed.


2 Responses to “Setup a Java environment”

[...] First make sure Java is installed: See my other blog post [...]

How to setup Maven2 | Ladysign Dev Blog on April 13th, 2009 at 11:55 AM

[...] Make sure a Java JDK is installed: See my other blog post [...]

Working with Hippo (a Java CMS) | Ladysign Dev Blog on April 13th, 2009 at 1:08 PM

Leave a comment