Showing posts with label JDK. Show all posts
Showing posts with label JDK. Show all posts

Monday, February 10, 2014

Install JDK8 Release Candidate on Raspberry Pi

The first Release Candidate build of JDK 8, b128 is available now. It Including supported platform of Linux ARMv6/7 VFP, HardFP ABI, it can be run on Raspberry Pi. Here show the steps to install on Raspberry Pi.
http://helloraspberrypi.blogspot.com/2014/02/java-8-release-candidate-is-available.html

Monday, September 9, 2013

Wednesday, April 17, 2013

Java SE 7, SE 6 and SE Embedded 7 update released

Oracle has released three updates to Java:
  • Java SE 7 Update 21
    This release contains new features and fixes for security vulnerabilities, including a new Server JRE, JRE Installer linked with Uninstall Applet on Windows platform, changes to Security Dialogs and more. Oracle strongly recommends that all Java SE 7 users upgrade to this release.
  • Java SE 6 Update 45
    This release contains fixes for security vulnerabilities.
  • Java SE Embedded 7 Update 21
    This release is based on Java Development Kit 7 Update 21 (JDK 7u21) and provides specific features and support for embedded systems.
Source: https://blogs.oracle.com/java/entry/java_se_7_update_21

Thursday, March 7, 2013

Java SE 7u17, Java SE 6 Update 43 and JDK8(Early Access)

Java SE 7u17, Java SE 6 Update 43 is now available: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

Java SE Download
Java SE Download

And also, you can download the latest preview updates JDK 8, the next generation of the Java Development Kit. Source code may be found through the OpenJDK jdk8 project.

Oracle releases periodic early access snapshots of the binaries and documentation for JDK 8 snapshots on java.net. These raw snapshots let you review and contribute to the Java SE platform as it is being developed.

JDK 8 snapshots on java.net
JDK 8 snapshots on java.net


Friday, February 1, 2013

How to remove JDK in Ubuntu Linux

Java SE 7 Update 13 released, so I have to remove old jdk and install the updated version.

To remove jdk using update-alternatives, open Terminal and type the commands:

sudo update-alternatives --remove "javac" "/home/you/jdk1.7.0_11/bin/javac"
sudo update-alternatives --remove "java" "/home/you/jdk1.7.0_11/bin/java"

remove JDK in Ubuntu Linux
remove JDK in Ubuntu Linux

After remove the old jdk, you can remove the old jdk from your hardisk, and re-install the new JDK 7 and update-alternatives.

Java SE 7 Update 13 and Java SE 6 Update 39 released

Java SE 7 Update 13 and Java SE 6 Update 39 released. This release includes important security fixes. Oracle strongly recommends that all Java SE 7 users upgrade to this release, read Release Notes in the download page.



Download: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html


Wednesday, January 16, 2013

Set PATH to JDK on Windows 8 (official version)

Last post described how to "Download and Install JDK 7 on Windows 8 (Official version)".

After downloaded and install JDK 7 on Windows 8, now open a Command Prompt window to run java or javac...!!!

you can optionally set PATH environment variable to JDK so that you can conveniently run the JDK executable files (javac.exe, java.exe, javadoc.exe, and so forth) from any directory without having to type the full path of the command.

To set path, search "Environment Variables" in "Settings", click "Edit the system environment variables".

Click "Environment Variables".

Select System variables of Path, and click Edit...

Add the location of the bin folder of the JDK installation, in my case it is "D:\Program Files\Java\jdk1.7.0_11\bin".

Now, you can close and re-open Command Prompt window, type java and javac to varify your setting.

Install JDK 7 on Windows 8 (Official version)

In this post, I describe how to download and install JDK 7 (Java SE 7u11 currently) on official Windows 8 (not Preview version).

Note: You must have administrative permissions in order to install the JDK on Microsoft Windows.
Note: Installers for JDK 7u6 and later install the JavaFX SDK and integrate it into the JDK installation directory.

Visit http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the download Java Platform button.

Scroll down to check Accept License Agreement, select Java SE Development Kit 7u11, jdk-7u11-windows-i586.exe for Windows x86.

Run the downloaded installer.

Select optional features and location to install.


Select location to install jre.


Completed.

Next:
- Set PATH environment variable to JDK on Official Windows 8

Tuesday, January 15, 2013

Install JDK 7 and update-alternatives on Ubuntu 12.10

Download update JDK here: http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the DOWNLOAD Java Platform graph.




Scroll download to check the box of Accept License Agreement, and select the package to download. In this case, jdk-7u11-linux-i586.tar.gz for Linux x86 is selected.


Move the downloaded .tar.gz archive binary to the directory you want to install.

Open a Terminal, the the command to unpack the tarball and install the JDK:
$tar zxvf jdk-7u11-linux-i586.tar.gz

For example, if you download the .tar.gz is /home/you, your installed directory will be /home/you/jdk1.7.0_11.

Then, you have to update alternatives for javac and java:
$sudo update-alternatives --install /usr/bin/javac javac /home/you/jdk1.7.0_11/bin/javac 1
$sudo update-alternatives --install /usr/bin/java java /home/you/jdk1.7.0_11/bin/java 1

If you have more than one javac installed, you have to config your javac alternative
$sudo update-alternatives --config javac
$sudo update-alternatives --config java

Finally, delete the downloaded .tar.gz after then.


Saturday, January 12, 2013

Disable Java in all browser using Java Control Panel

The JDK 7u10 release include Java Control Panel to provide the ability to disable any Java application from running in the browser.

Here show steps to disable Java in browser using Java Control Panel, in Windows 7.

- Start Control Panel.

- Select Programs.


- Click Java.


- Select Security tab, uncheck Enable Java content in the browser, click Apply to accept.





Related:
- How to run Java Control Panel on Windows 8


Wednesday, June 20, 2012

Oracle Java SE Critical Patch Update Advisory - June 2012

A Critical Patch Update is a collection of patches for multiple security vulnerabilities. The Critical Patch Update for Java SE also includes non-security fixes. Critical Patch Updates are cumulative and each advisory describes only the security fixes added since the previous Critical Patch Update.

Details: http://www.oracle.com/technetwork/topics/security/javacpujun2012-1515912.html

Wednesday, April 4, 2012

Monday, March 12, 2012

How to run JavaFX application as a standalone program

In NetBeans, the generated executable Jar File is available on a local drive. Such as(in Windows):
C:\Users\Seven\Documents\NetBeansProjects\JavaFX_Path\dist\JavaFX_Path.jar

It can be launched by:
  • Open cmd window.
    Switch to the destination directory.
    type: java -jar JavaFX_Path.jar.
    How to run JavaFX application as a standalone program in DOS prompt

  • Open File Browser.
    Switch to the destination directory.
    Double click the application JAR file.
    How to run JavaFX application as a standalone program in File Browser

Wednesday, February 15, 2012

Tuesday, January 17, 2012

Set PATH for JDK 7 on Windows 8

You can run the JDK without setting the PATH environment variable, or you can optionally set it so that you can conveniently run the JDK executable files (javac.exe, java.exe, javadoc.exe, and so forth) from any directory without having to type the full path of the command.

To setup PATH in Windows 8:
Run Control Panel in Windows 8's Metro UI


Click More Settings in Control... on the left.


Search "Environment Variables" in Control Panel, and click "Edit the system environment variables".


Click on "Environment Variables..."


Scroll down to highligh and edit path items.


My full path of the bin folder of the JDK is:
C:\Program Files\Java\jdk1.7.0_02\bin

So add ";C:\Program Files\Java\jdk1.7.0_02\bin" in the path string.


Click OK... to finish.

Re-open Windows 8's "cmd" window, now i can start java and javac in anywhere.



Updated@2013-01-17: Set PATH environment variable to JDK on official Windows 8

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