Go to http://java.sun.com/, mouse over Downloads in the top menu bar, and choose Java SE. Click on Download JDK button. Then select your platform (select 32-bit version for windows even if you have 64-bit), check the checkbox to accept the terms and click the Download button. Then click on the jdk-6u18-windows-i586.exe
link to download it. Click Save button.
NOTE: The latest version right now is JDK 6 Update 18
, and the filename is jdk-6u18-windows-i586.exe
.
IMPORTANT: Even if you have a 64-bit computer, you should download the 32-bit version of the JDK. Eclipse seems to want the 32-bit version.
I tried installing the 64-bit version and I got this error when I start Eclipse:
A Java Runtime (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.
No Java Virtual Machine was found.