THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Homepage: | |
Download: | |
File(s): | Windows: jdk-6u13-windows-i586-p.exe (75 MB) |
Installation
Windows
- Execute EXE-File
- Wizard:
- Accept License Agreement
- Install all components (Java DB not needed, but is only 25 MB...)
- Target directories (defaults, don't change anything):
- Development Tools: C:\Program Files\Java\jdk1.6.0_13\
- Demos and Samples: C:\Program Files\Java\jdk1.6.0_13\
- Source Code: C:\Program Files\Java\jdk1.6.0_13\
- Public JRE: C:\Program Files\Java\jre6\
- Java DB: C:\Program Files\Sun\JavaDB\
- After installation a popup appears, which wants you to register. You don't need to do this.
Ubuntu
- Execute Synaptic package manager
- Install "sun-java6-jdk"
- Agree to license shown in dialog
Configuration
- Add JAVA_HOME variable to your environment:
Windows:
- Start - Settings - Control Panel - System - Advanced - Environment Variables
- System variables - New: JAVA_HOME = C:\Program Files\Java\jdk1.6.0_13
Ubuntu:
Code Block | ||||
---|---|---|---|---|
| ||||
# nano /etc/environment ... JAVA_HOME="/usr/lib/jvm/java-6-sun/" ... # source /etc/environment |
Test
Windows:
- Open a new command prompt window (Start - Programs - Accessoires - Command Prompt)
Code Block | ||||
---|---|---|---|---|
| ||||
C:\>java -version java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing) C:\>echo %JAVA_HOME% C:\Program Files\Java\jdk1.6.0_13 |
Ubuntu:
- Open a new terminal
Code Block | ||||
---|---|---|---|---|
| ||||
$ java -version java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode) $ echo $JAVA_HOME /usr/lib/jvm/java-6-sun/ |