Friday Oct 05, 2012

JavaOne 2012 - The Power of Java 7 NIO.2

At JavaOne 2012, Mohamed Taman of e-finance gave a presentation highlighting the power of NIO.2, the file I/O APIs introduced in JDK 7. He shared information on how to get the most out of NIO.2, gave tips on migrating your I/O code to NIO.2, and presented case studies.

The File I/O (featuring NIO.2) lesson in the Java Tutorials has extensive coverage of NIO.2 and includes the following topics:

From the conference session page, you can watch the presentation or download the materials.

JavaOne 2012 - Why Should I Switch to Java SE 7

At JavaOne 2012, David Keenan and Staffan Friberg gave a presentation to answer why it is beneficial to update your production environment to Java SE 7. The following resources will help you learn more about JDK 7 features and facilitate a smooth transition:
* Features and Enhancements and Known Issues
* Compatibility with earlier releases
* JDK 7 and JRE 7 Certified System Configurations
* JDK 7 and JRE 7 Supported Locales
* JDK 7 Adoption Guide
* Information About 7 Update Releases

- Sowmya

Thursday Oct 04, 2012

JavaOne 2012 - Java Generics

At JavaOne 2012, Venkat Subramaniam of Agile Developer, Inc, presented a conference session titled "The Good, The Bad, and the Ugly of Java Generics." Dr Subramaniam discussed the use of generics, what to watch out for when using generics, and best practices.

To learn more about working with generics, see the Generics trail in the Java Tutorials. The trail was recently expanded and coverage added for the following topics:

From the conference session page, you can watch the presentation.

Wednesday Oct 03, 2012

JavaOne 2012 - Java Deployment on Mac OS X

Also at the JavaOne 2012 conference, Scott Kovatch presented a session on Deploying Your Application with OpenJDK 7 on Mac OS X. The session had special emphasis on how to deploy Java applications to the Mac App Store. Interested developers may find the following documentation useful: Packaging a Java App for Distribution on a Mac.

The Java Deployment on Mac OS X presentation, by Scott Kovatch and Chris Bensen, provided an overview of Oracle Java on the Mac. For more information on installing and using Oracle Java for the Mac, refer to the following documentation:

From the Deploying Your Application with OpenJDK 7 on Mac OS X conference session page, you can watch the presentation or download the presentation slides.

From the Java Deployment on Mac OS X conference session page, you can watch the presentation.

JDK 7 In Action - Learn With Java Tutorials and Developer Guides

At JavaOne 2012, Stuart Marks, Mike Duigou, and Joe Darcy gave a presentation about JDK 7 In Action. Learn more about using JDK 7 features with the help of Java Tutorials and JDK 7 Developer Guides. Links to relevant information are provided below.
If you are considering moving to JDK 7 from a previous release, the JDK 7 Release Notes and JDK 7 Adoption Guide are great resources.

Project Coin Features

Improved Literals

* Literals section in Primitive Datatypes topic.
* Binary Literals
* Underscores in Numeric Literals

Strings In Switch

* Strings In Switch


* Type Inference for Generic Instance Creation
* Type Inference and Instantiation of Generic Classes

Multi-catch and Precise Throw

* Catching Multiple Exception Types and Rethrowing Exceptions with Improved Type Checking
* Catch Blocks


* The try-with-resources Statement

NIO.2 File System API

* File I/O for information on path, files, change notification, and more
* Zip File System Provider
* Zip File System Provider
* Developing a Custom File System Provider

Fork Join Framework

* Fork/Join

- Sowmya

Tuesday Aug 14, 2012

JDK 7u6 Is Released!

The Java SE 7u6 release has gone live! You can download it from the Java SE Downloads page.

The Java™ SE Development Kit 7, Update 6 (JDK 7u6) Release Notes has detailed information about the release, but the highlights of this update include:

  • The first full release of Oracle Java for Mac OS X. You may find the following documentation useful:
  • The Java Access Bridge enables certain Java programs to be visible to assistive technologies on Microsoft Windows systems. For more information on how to enable and test Java Access Bridge, see the Java Accessibility Guide.

Thursday Jun 14, 2012

Java Tutorials Update

The Java Tutorials have been updated. This version features a reworked Generics lesson.

The downloadable tutorial bundle and ebook (which contains the Generics lesson) have been updated. The javatrail.epub book will be updated towards the end of the month. You can access the downloadable materials through the Java SE Tutorials download page.

Friday Mar 02, 2012

Java Tutorials Now Available as eBooks!

The Java Tutorials have been updated. The major feature of this release is that most of the tutorial trails are now available as free downloadable eBooks!

What is new in the March 2nd, 2012 release:

  • The Java Tutorials are now available in two new formats:
    • mobi ebook files for Kindle. For best results we recommend viewing on the Kindle Fire or Kindle DX.
    • ePub ebook files for iPad, Nook, and other eReaders that support the ePub format.
  • Each ebook contains a single trail. You can download trails via the link in the "In Book Form" box on the tutorial's front page.

    For best results when viewing preformatted code blocks, adjust the landscape/portrait orientation and font size of your device to enable the maximum possible viewing area.

  • We are pleased to announce that the Preparation for Java Programmer Language Certification lesson has been completely reworked. The objectives for each Java SE 7 certification exam are listed and links are provided to relevant tutorial pages.

  • The Internationalization of Network Resources lesson has been updated.

For more information, see The Java Tutorials.

Wednesday Oct 19, 2011

JDK 7 Adoption Guide

Have you considered upgrading your environment to JDK 7?

Java SE 7 update 1 was released on October 18, 2011. If you are curious about what benefits JDK 7 offers, check out the JDK 7 Adoption Guide. This guide describes why you should consider upgrading from JDK 6 to JDK 7. The document has a rich set of links to relevant documentation to enable developers to learn the technology quickly.

Related Links
JDK 7 Release Notes Index
Java SE EOL Policy

Wednesday Oct 05, 2011

Signing JAR Files with a JNLP Template

The following documentation for this JDK 7 feature will be included as part of the Java SE 7u2 (and later) Guide documentation. Until that release, we are making it available here.

Signing JAR Files with a JNLP Template

A JNLP file can be signed in order to grant a jar-bundled application special privileges. When deploying a signed application from a location that is unlikely to change, and other aspects of the deployment are stable, you can use a standard JNLP file, as described in Signing and Verifying Jar Files (Java Tutorial).

However, in cases when an application needs to be re-distributed, or other tweaks are needed, such as changing the application icon, you can deploy the application with a JNLP template. Introduced in JDK 7, a template can define what parts of an external JNLP file may differ from one embedded into a jar file.

A template file has the name JNLP-INF/APPLICATION_TEMPLATE.JNLP. Note that the name must be in upper case. For those element or attribute fields in the file that are to be left unspecified, the wildcard notation, *, is used as that field's value. Elements or attributes that may compromise security will be locked out from this feature.

The following is an example of an application template that could be used to host an application on various hosts with different application icons.

<?xml version="1.0" encoding="UTF-8"?>
  <jnlp codebase="*">
      <vendor>Sample Company</vendor>
      <icon href="*"/>
      <java version="1.3+"/>
      <jar href="SampleApp.jar"/>
    <application-desc main-class="com.sample.SampleApp"/>

An application with this text in a JNLP-INF/APPLICATION_TEMPLATE.JNLP file in its main jar file can be moved from one server to another, or its application icon can be changed, without resigning the main jar file.

For more information, see Version 7.0 of the JNLP specification (

-- Sharon Zakhour

Friday Mar 18, 2011

St Patrick's Day Release of Java Tutorial

We have recently released two updates of the Java Tutorial. The February 21st update was designed to coincide with the JDK7 Developer Preview Release. The tutorial was updated again on St Patrick's Day, March 17th.

The updated content for both releases includes the following features:

The updated tutorial is available as a download from The Java Tutorials front page.

We hope you enjoy the updated content!

-- Sharon Zakhour

Thursday Feb 18, 2010

Getting Java Applets to Work on Mac OS

Are you having trouble viewing some Java applets on a Mac? Got next generation Java Plug-in?[Read More]

Wednesday Nov 25, 2009

Java Applets Quiz

Do you enjoy quizzes? Take a minute to answer this quiz about Java applets.[Read More]

Tuesday Nov 24, 2009

Getting Applets To Talk To Each Other

Do you have more than one applet on a web page? Do you want the applets to share water cooler gossip? Ahem..ahem.. On a more serious note, do you want one applet to invoke methods or set variables of another applet? [Read More]

Friday Nov 13, 2009

Re-spin Your Desktop Application Into A Java Web Start Application

Do you have a desktop application that you'd like to distribute to a wider audience? How about monetizing your application by showcasing it on the Java Store? Check out our screencast!

[Read More]

Blog about Java technology documentation and news about Java releases.


« July 2016