Tuesday, January 17, 2012

Install JDK 7 on Windows 8

Browse to Oracle download page(http://www.oracle.com/technetwork/java/javase/downloads/index.html) to download Java Platform (JDK), the current version is Java Platform (JDK) 7u2.
Browse to Oracle download page

Click to Accept License Agreement, select download Windows x86 ot x64. It's jdk-7u2-windows-i586.exe for Windows x86 in my case.
Download setup file

Execute the downloaded file.




Accept the Destination Folder, click Next.
Accept the Destination Folder


Click Continue button to continue JavaFx 2.0 SDK Setup.
JDK Setup complete

Install JavaFx 2.0 SDK Setup, click Next.
Install JavaFx 2.0 SDK Setup

Accept the JavaFx 2.0 SDK installation director.
Accept the JavaFx 2.0 SDK installation director



Complete by clicking on Close button.
JavaFX 2.0 SDK Setup - Complete

A browser will open for you to register your software.
register
In order to verify the setup correct, you have to run "cmd" in Windows. Refer to the article about how to run "cmd" in Windows 8.

Update to this step, you cannot run javac except you are in C:\Program Files\Java\jdk1.7.0_02\bin. Because you haven't set PATH.
Update to this step, you cannot run javac except you are in C:\Program Files\Java\jdk1.7.0_02\bin

To setup path, refer to the post "Set PATH for JDK 7 on Windows 8".

Refer to the post "Hello World of Java 7 on Windows 8, in 'cmd' DOS Prompt" to verify your JDK installation.


Updated@2013-01-17: Install JDK 7 on official Windows 8

Sunday, December 11, 2011

Java Windows Azure Introduction

Learn how to build and deploy a simple application to Windows Azure using Java.




Tuesday, November 1, 2011

Install JDK 7 on Ubuntu Linux

Here is the step to install JDK 7 on Ubuntu Linux 11.10:


Download JDK7: http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Follow the steps to Installation the JDK on Linux Platforms, http://download.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html.


1. Download the file. Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.

2. Change directory to the location where you would like the JDK to be installed. Move the .tar.gz archive binary to the current directory.

3. Unpack the tarball and install the JDK.

$ tar zxvf jdk-7u<version>-linux-i586.tar.gz

The Java Development Kit files are installed in a directory called jdk1.7.0_<version> in the current directory.

4. Delete the .tar.gz file if you want to save disk space.


Finally, config your javac on Ubuntu Linux

In Terminal, type the command to install the java alternative.
$sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 1

Where:
/usr/lib/jvm/ is the directory the JDK installed, on step 2; such that javac should be at /usr/lib/jvm/jdk1.7.0/bin/javac.
The last number, 1, is an integer of "priority"; it should be work on any integer number.

If you have more than one javac installed, type te comand to select the active javac.
$sudo update-alternatives --config javac