Tuesday Mar 03, 2015

JDK 8u40 Released!

JDK 8u40 has been released and is available from the Java SE Downloads page. See the JDK 8u40 Update Release Notes for details.

Java Tutorial Updates

The Java Tutorial has been updated to include a new lesson in the Deployment trail that describes how to use the Java packaging tools to generate self-contained applications. Self-contained applications are Java applications that are bundled with the JRE that is needed to run. These applications are installed on a user's local drive and launched in the same way as native applications. See Deploying Self-Contained Applications for more information.

JDK Tools Enhancements

JDK 8u40 contains many tools enhancements. See Tools Enhancements in JDK 8 for details.

JavaFX Enhancements

Starting with the JDK 8u40 release, JavaFX controls are enhanced to support assistive technologies, meaning that JavaFX controls are now accessible. In addition, a public API is provided to allow developers to write their own accessible controls.

Accessibility support is provided on Windows and Mac OS X platforms and includes:

  • Support for reading JavaFX controls by a screen reader
  • JavaFX controls are traversable using the keyboard
  • Support for a special high-contrast mode that makes controls more visible to users.

JDK 8u40 also includes new JavaFX UI controls; a spinner control, formatted-text support, and a standard set of alert dialogs.

Spinner Control

A Spinner is a single line text field that lets the user select a number or an object value from an ordered sequence. See javafx.scene.control.Spinner class for more information.

Formatted Text

A new TextFormatter class provides text formatting capablity for subclasses of TextInputControl (for example, TextField and TextArea). See javafx.scene.control.TextFormatter class for more information.

Dialogs

The Dialog class allows applications to create their own custom dialogs. In addition, an an Alert class is also provided, that extends Dialog, and provides support for a number of pre-built dialog types that can be easily shown to users to prompt for a response. See javafx.scene.control.Dialog, javafx.scene.control.Alert, javafx.scene.control.TextInputDialog, and javafx.scene.control.ChoiceDialog classes for more information.

Commercial Features

Application Class Data Sharing (AppCDS):

Application Class Data Sharing (AppCDS) extends CDS to enable you to place classes from the standard extensions directories and the application class path in the shared archive. This is a commercial feature and is no longer considered experimental (contrary to what is specified in the java tool documentation). See the -XX:+UseAppCDS option in the java launcher tool page.

Cooperative Memory Management

Starting with JDK 8u40, the notion of "memory pressure" has been added to the JDK. Memory pressure is a property that represents the total memory usage (RAM) on the system. The higher the memory pressure, the closer the system is to running out of memory.

As a reaction to increased memory pressure, the JDK will try to reduce its memory usage. This is mainly done by reducing the Java heap size. The actions the JDK will take to reduce memory usage may lead to reduced performance. This is an intentional choice.

The pressure level is provided by the application through a JMX MXBean using a scale from 0 (no pressure) to 10 (almost out of memory). To enable this feature, the jdk.management.cmm.SystemResourcePressureMXBean should be registered. The memory pressure is then set using the "MemoryPressure" attribute.

A new command line flag -XX:MemoryRestriction that takes one of the arguments 'none', 'low', 'medium', or 'high', is also available. This flag will set the initial pressure in the JDK and will work also in cases where the MXBean is not registered.

Cooperative Memory Management requires the G1 GC (-XX:+UseG1GC). This feature is not compatible with the flag -XX:+ExplicitGCInvokesConcurrent.

New Commercial Flags

Two new VM options are now available for commercial license holders:

  • -XX:+ResourceManagement
  • -XX:ResourceManagementSampleInterval=value (milliseconds)

For more information, see the java tool page.

New MSI Installer Documentation

The Microsoft Windows Installer (MSI) Enterprise JRE Installer Guide is now available. The MSI Enterprise JRE Installer requires a commercial license for use in production. To learn more about commercial features and how to enable them, visit http://www.oracle.com/technetwork/java/javaseproducts.

Java Flight Recorder(JFR) Enhancements

It is now possible to enable Java Flight Recorder at runtime. For details, see the Java Flight Recorder Runtime Guide. Java Flight Recorder requires a commercial license for use in production. To learn more about commercial features and how to enable them, visit http://www.oracle.com/technetwork/java/javaseproducts.

Troubleshooting Guide Updates

The Troubleshooting Guide has been updated with new content for Troubleshooting using JMC, Troubleshooting Memory Leaks using JFR, and Troubleshooting Performance Issues using JFR.

Tuesday Jan 06, 2015

Java Tutorials Sixth Edition Book Released!

The JDK documentation team is pleased to announce that The Java Tutorials Sixth Edition book is now available on Amazon in printed book and kindle formats.

This edition, based on Java SE 8, introduces the new features added to the platform, including lambda expressions, default methods, aggregate operations, and more. Expanded coverage includes a chapter on the Date-Time API and a new chapter on annotations, with sections on type annotations and pluggable type systems as well as repeating annotations. In addition, the updated sections “Security in Rich Internet Applications” and “Guidelines for Securing Rich Internet Applications” address key security topics.

If you plan to take one of the Java SE 8 certification exams, this book can help. A special appendix, “Preparing for Java Programming Language Certification,” details the items covered on the available exams. Check the Java Tutorials online for updates.


- Sowmya

Thursday Oct 23, 2014

JMC and JFR Documentation

In case you missed it, the user guides for Java Mission Control and Java Flight Recorder have moved! As of JDK 8u20, links to the 5.4 and 5.3 versions of these docs can be found the JMC tab of the javacomponents page at: http://docs.oracle.com/javacomponents/jmc.htm.

Redirects from the old locations are in place, but please update your bookmarks accordingly!

Wednesday Oct 08, 2014

Java SE Documentation Survey 2014

The Java SE documentation team is conducting a brief survey at the following URL:

https://www.surveymonkey.com/s/java-se-documentation-survey-2014

Answering it will provide us with key insights into the kinds of developer documentation that you (our readers) are looking for. Thank you in advance. We value your input very much!

Thursday Oct 02, 2014

JavaOne 2014: Enhanced Metadata in Java SE 8

Wednesday at JavaOne, Joe Darcy and Alex Buckley of Oracle presented Enhanced Metadata in Java SE 8. This session described new features related to annotations and explained how to use annotations with custom type checkers to improve code quality.

For more information on this topic, see the Annotations lesson in the Java Tutorials.

JavaOne 2014: Packaging and Deploying Java Apps in Java 8u20

Today at JavaOne, Danno Ferrin of Oracle presents the session Packaging and Deploying Java Apps in Java 8u20. This session provides information about the new features for the Java Packager and shows you how to integrate them into your build chain.

For more information on this topic, see The Java Packager Tool and Packaging Basics in the Java Platform, Standard Edition Deployment Guide.

Tuesday Sep 30, 2014

Java 2014: Using Oracle Java Flight Recorder

Today, Marcus Hirt (Consulting Member of Technical Staff, Oracle) and Michael Avrahamov (Sr. Director of Software Development, Oracle) hosted the session Using Oracle Java Flight Recorder. Java Flight Recorder (JFR) is a tool for collecting diagnostic and profiling data about a running Java application. It is a feature of Oracle Java SE Advanced and Oracle Java SE Suite. The session showed how JFR works, different ways to control JFR, and examples of how to analyze recordings in different ways.

For more information, see Java SE Java Flight Recorder Runtime Guide.

JavaOne 2014: Using Type Annotations to Improve Code Quality

Today, Geertjan Wielenga (Principal Product Manager, Oracle) and Werner Dietl (Assistant Professor, University of Waterloo) hosted the session Using Type Annotations to Improve Code Quality. This session discussed how you can use type annotations to improve code quality through fine-grained documentation and support for pluggable type systems.

For more information, see Type Annotations and Pluggable Type Systems in the Java Tutorials.

JavaOne 2014: You’ve Got Your Streams on My Collections!

Today, Mike Duigou (Principal Member of Technical Staff, Oracle), Stuart Marks (Principal Member of Technical Staff, Oracle), and Paul Sandoz (Software Engineer, Oracle) hosted the community discussion You’ve Got Your Streams on My Collections! Topics discussed included the state of the Java Collection and Streams APIs and some of the best third-party libraries.

For more information about the Collections and Streams API, see Aggregate Operations and the Collections trail in the Java Tutorials.

JavaOne 2014: Understanding Java Garbage Collection

Today, Gil Tene, CTO, Azul Systems, presented the conference Understanding Java Garbage Collection. The conference classifies various garbage collection techniques currently available in JVMs such as generational, parallel, stop-the-world, incremental, and concurrent algorithms, and defines terms and metrics common to all collectors.

See the Java SE HotSpot Virtual Machine Garbage Collection Tuning Guide for more information.

JavaOne 2014: JavaFX 8, New and Noteworthy

Monday at JavaOne, Kevin Rushforth and Steve Northover of Oracle presented JavaFX 8: New and Noteworthy at JavaOne. This talk described features added to JavaFX 8.

For more information on JavaFX 8 features, see:

JavaFX documentation is available at http://docs.oracle.com/javafx

Monday Sep 29, 2014

JavaOne 2014: Nashorn: JavaScript for the JVM

Today, Jim Laskey, multi-languages lead at Oracle, presented the conference Nashorn: JavaScript for the JVM. Nashorn is a JavaScript engine implemented fully in Java on the JVM.

For more information, see the Nashorn User's Guide.

JavaOne 2014: The Java Time API in Java SE 8

Monday, Roger Riggs of Oracle gave a presentation about The Java Time API in Java SE 8. This API was introduced in JDK 8 and makes it easier for developers to write date-and-time-based code.

For more information on this API, see the Date Time Trail in the Java Tutorials.

JavaOne 2014: Security with Java Deployment

Monday at JavaOne, David DeHaven and Chris Bensen of Oracle gave a presentation on Security with Java Deployment, which covers the changes that were made in the deployment security model over the past few years. Best practices were also discussed.

For additional information about the topics covered, see the following Java documentation:

JavaOne 2014: Lambda Expressions, Streams, and JDK 8 Enhancements to Collections

The following JavaOne presentations, scheduled for Monday, September 29, discuss lambda expressions, streams, and JDK 8 enhancements to collections:

For more information about these topics, see the following sections in the Java Tutorials:

About

Blog about Java technology documentation and news about Java releases.

Search

Categories
Archives
« July 2015
SunMonTueWedThuFriSat
   
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today