Note, that this recipe is not updated long time and could be outdated!
Got it.

QUIT WINDOWS, IT SEVERELY HARMS HEALTH OF YOUR COMPUTER!

COMPUTERS RUNNING WINDOWS DIE YOUNG!

JDK on Windows

Sun Microsystems offers command-line tools which support Java specification: these tools can compile, run Java programs and otherwise manipulate them. On the top of these popular tools one can run various advanced development tools such as IDEs (Integrated Development Environments), e.g. Eclipse, JDeveloper, etc. One can have various Java installations on the same computer simultaneously (either from Sun or other vendors). Many tools use JAVA_HOME to detect the Java installation, which should be used at the given moment.

  1. Visit the homepage, pick the newest release (at the time of writing this it is "JDK 6 Update 3"), press button Download, agree to licence terms, pick "Windows Offline installation". After that download JDK 1.6 documentation. You can ignore Java Runtime Envirnoment (JRE), since it is included in JDK anyway.
  2. Open jdk-6u3-windows-i586-p.exe and agree to all defaults.
  3. After the installation define a new environment variable - JAVA_HOME. It should point to the installation directory of JDK. For example, C:/Program Files/Java/jdk1.6.0_03.
  4. Edit the environment variable Path by replacing its previous value

    some_directory1;some_directory2;...

    with the following one:

    %JAVA_HOME%/bin;some_directory1;some_directory2;...
  5. Note:* Path directories under Windows should be separated with semicolons (;). By adding the %JAVA_HOME%/bin directory at the very beginning you can ensure that no "java.exe", which may appear later in various Path directories is run (and also it is safer, if Path variable has errors somewhere such as unexpected spaces).

How to check your installation

  1. Close all DOS and Total Commander windows, which were open, when environment variables were redefined.
  2. Open a new DOS window in any directory; type command "java -version" and check that it prints the version number

Java SE 6 documentation

  1. Unzip the file jdk-6-doc.zip to %JAVA_HOME%. It should create a subdirectory with many HTML files - C:/Program Files/Java/jdk1.6.0_02/docs
  2. If you wish, you can add documentation homepage (and also the API documentation homepage) as bookmarks/favorites for your browser.
  3. Java documentation is also available in the Internet - see JDK 6 Documentation, also Javas API Dokumentation

  
Tags Windows Rīki Uzstādīšana Programmēšana Java
Created by Valdis Vītoliņš on 2013-09-08 13:52
Last modified by Valdis Vītoliņš on 2013-09-08 13:52
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License