YOUR FEEDBACK
Jeremy Geelan wrote: In response to inquiries and suggestions from readers this lexicon has recently...


2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Mastering Mustang: JDK 6.0 Mustang Release
A review of some of the latest happenings in the JDK 6.0 (Mustang) release

This month I wanted to review some of the latest happenings in the JDK 6.0 (Mustang) release. Although we have to wait to see the initial JSR draft, you can download the binaries the engineers are actually working on. Some of the newest features to be added include JSR 223 scripting support and JAX-WS 2.0.

JAX-WS 2.0, if you weren't already aware, is what would have been JAX-RPC 2.0. Apparently the name JAX-RPC was just too confusing for developers to work out what it did according to one source. While I don't share that belief and I'm sure not everyone at Sun does, the combination of JAXB and JAX-RPC together is worthy of a rename especially since there could be potential incompatibilities with earlier JAX-RPC releases on the client side.

Getting the JDK 6.0 Download
Getting the prerelease of JDK 6.0 is actually nicer than getting the final release. As the binaries are hosted on http://java.net, there are no annoying additional click-through licenses. However, producing weekly drops is still a relatively new exercise; although there are references to AMD64, those downloads should work fine on the Intel x86-64 equivalent. As for the reference to the "Solaris SPARC AMD64 self-extracting file" on build 40, I trust that is a typo and not an impending new hybrid chip. The downloads reuse the Java Pack API, which reduces the download size and adds a small step to the installation.

First impressions with the Linux release are good. Startup performance seems to be in the same ballpark and the demos I tried worked. Although it's getting harder to find Web sites that use Java applets, there are some still to be found on http://java.com.

What Is in the Release So Far?
The introduction of JAX-WS brings a few more scripts to the platform. xjc is the binding compiler wrapper to map XML to Java types. There is also a new command wsimport that when running gives clues that it used to be the better-known wscompile. wscompile is used to generate the Java helper files from a WSDL or service definition.

I mentioned the addition of JSR 223 earlier. At the moment the changes are at the API level only; there are no examples or shell interface. The scripting API is exposed as javax.script and a Rhino script implementation (Rhino is an open source JavaScript written in Java) as com.sun.script.javascript and sun.org.mozilla.

The quickest way to get started with what the technology has to offer is to head over to www.mozilla.org/rhino/doc.html. The example RunScript launcher script can be easily modified to import the sun.org.mozilla classes instead of org.mozilla. In addition, you need to catch a sun JavaScript exception. The RunScript launcher allows you to supply JavaScript as a command-line option to the JVM. Once the API has been made official, the normal method would be to use the new javax script engine hooks.

An example of using RunScript with JDK 6.0:

java RunScript 'java.lang.System.getProperty("java.version")' 1.6.0-ea

Another neat feature is an incremental improvement to the Java IO API. I mentioned in an earlier article that the NIO JSR changes have slipped the release. However, you can now see how much disk space is available without having to resort to a JNI call.

The following code snippet reports 1K blocks of space on directory /export.

File f =new File("/export");
System.out.println(f.getFreeSpace()/1024);
System.out.println(f.getTotalSpace()/1024);

Client Java Changes
Although many of the server changes are bounded by API approval, the majority of the client changes are implementation-dependent only. So as long as the API remains the same, the engineering team can continue with development. This means that a good portion of the client-side functionality has been done.

One very simple feature I was able to test out was the splash screen API and splash screen launcher. You can try it out too. The following example was run from the demo/jfc/Stylepad directory:

java -splash:src/resources/rabbit.gif -jar Stylepad.jar

You'll then see the rabbit image appear as a splash screen. Many of the other client features are purely API driven, including the desktop integration. This is probably sufficient for ISV/tools developers; however, it may take a while to see serious adoption by the majority of developers.

Vote Away
One request from the JDK 6.0 team I wholeheartedly agree with is logging or voting on bugs you discover. I found a couple when writing this editorial, both of which were already identified by the QA teams. I was able to vote on them though.

The Sun JDK product has a long integration cycle, meaning that getting approval to integrate bugs even up to a year before the release gets increasingly difficult. Unless a bug is a true showstopper, don't expect a fix if the release date is within three months (a cycle of testing takes over a month).

In conclusion, the JDK 6.0 release can certainly be taken out for a test download today. Hopefully the line on startup time and quality can be maintained until we see the final release.

About Calvin Austin
A section editor of JDJ since June 2004, Calvin Austin is an engineer at SpikeSource.com. He previously led the J2SE 5.0 release at Sun Microsystems and also led Sun's Java on Linux port.

LATEST JAVA STORIES & POSTS
What's the key to team and individual developer productivity in maintaining and extending a large application? Let’s start by making the following assertions: A developer's knowledge of an application code base is likely the single biggest factor of individual productivity. Cor...
An applet, a Java program that runs in a browser, often has to access the client resources. However, the security manager prevents an applet from accessing client resources. To access client resources, the applet has to have the proper permission. With this permission the applet ...
Three-letter acronyms (TLAs) are hardly new in Information Technology: EAI, ESB, SOA, BPM, BAM, ETL, MDM; the list goes on and on. This article is about yet another three-letter acronym, EDA, which stands for Event-Driven Architecture. EDA is not a brand new technology, but rathe...
Furthering its dedication to providing Java developers productivity with choice, Oracle announced the Oracle Enterprise Pack for Eclipse, a new component of Oracle Fusion Middleware. This release marks the first free Eclipse 3.4 environment to support Oracle WebLogic Server 10g R...
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted...
Red Hat CTO Brian Stevens, Citrix CTO Simon Crosby, Egenera CTO Pete Manca, Allen Stewart, Group Manager, Windows Virtualization at Microsoft, and Brian Duckering, Sr. Director of Products and Alliances at Symantec were the top industry executives who joined Jeremy Geelan in the ...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

SPONSORED BY INFRAGISTICS
There are many forces that influence technological evolution. After a decade of building enterprise ...
2008 is going to be an important year for Rich Internet Applications. Most organizations are deliver...
The OpenAjax Alliance is developing an Ajax industry wishlist for future browsers, using a dedicated...
In every field of design one of the first things students do is learn from the work of others. They ...
Infragistics announced the availability of two Community Technology Preview (CTP) User Interface (UI...
The YUI development team has released version 2.5.2; you can download the new release from SourceFor...
ADS BY GOOGLE
BREAKING JAVA NEWS

SpringSource, a leading provider of infrastructure software and the company behind ...