Skip to main content

C'mon C'mon

Posted by editor on July 28, 2008 at 5:24 AM PDT

Anticipating one of Java 7's major features

I can't remember how many JavaOnes ago it was when the SE roadmap addressed the idea of Java modules, saying that the legacy system of JARs and manifests had been stretched farther than it was meant to go, and that a new system was needed to express dependencies and the versioning of those dependencies.

There are a number of separate efforts that will combine to provide this functionality in Java 7. Of course, there's the de facto modularization of the JRE in SE 6 update 10, which reduces the JRE's initial download time by splitting the old rt.jar into smaller, potentially independent pieces. But beyond that, a more sophisticated concept of modules requires API changes, which is why we're waiting for Java 7. We've already looked at JSR 294 superpackages in a feature article, and another piece of the puzzle is provided by JSR 277, the Java Module System.

In another sign that modules are getting closer, Mandy Chung has announced initial Support for the module keyword in OpenJDK. "Very soon, in a week or two, the Java compiler (javac), packaging tool (jam), and the Java module system implementation in the OpenJDK Modules project will support the new module keyword (the language support for JSR 277). The engineering team have built a special workaround to enable ourselves to build the Java module system while waiting for the language support. With the javac and jam tool support (thanks to Jonathan Gibbons and Kumar Srinivasan), you can now experience developing, building and packaging of a JAM module as JSR 277 spec defines."

The stagnated closure battle notwithstanding, modules may be the most profound change expected in Java 7, so this will be one feature you keep an eye on.

Also in Java Today,

JSR 289: SIP Servlet v1.1 is now Final. "The SE/EE Executive Comittee of the JCP has approved (results) JSR 289, the SIP Servlet 1.1 Specification that is the core for SailFin. The final specification is not yet available but the PFD 2 should be very close. The first public release of SailFin will be aligned with GlassFish v2.1 and will happen around the end of the year; updated roadmaps are due in a few weeks."

The newly-posted JSR 326 proposes a standard Java API designed to support the generation and consumption of post mortem or snapshot Java diagnostic artifacts. "Existing Java diagnostic tools are focused primarily on what can be termed "live monitoring" - this means source level debuggers, trace tools, performance analysers etc. These tools are very useful when the problem is readily reproducible and the customer is willing to accept the costs of such reproduction. However, in many cases problems do not fall into either of these categories as the problem is either intermittent or the impact of reproduction with live monitoring tools is too expensive. [...] Here we enter the realm of post mortem analysis as the primary means for uncovering the cause of the issue." A Javalobby Article has more details about the thinking behind the JSR

Joshua Marinacci files a report from the O'Reilly Open Source Convention in today's Weblogs.
And now for something completely different, he writes, "at OSCON, I'm in a completely different environment. Java is just one of many languages here (and definitely in the minority, Perl seems to rule the roost). Being a smaller conference (and open source) the focus is less on big announcements and more on interesting technical things."

Raphael Mudge feels
The Need to Feed. "I'm looking for a decent "universal" feed parser. I'm actually planning to apply this to a real project. Here is what my hunt turned up and the results I faced."

Sergey Malenkov works through the question of
How to load classes from JAR or ZIP?
"I needed to load the classes from the dt.jar archive on the fly. The path to the archive was generated automatically based on the "java.home" system property. The original idea was to use the URLClassLoader, but it could not find classes. I had to write a custom class loader which read an archive and loaded classes on demand. At that instant I realized why the URLClassLoader did not work: I had incorrectly generated the path to the archive and the URLClassLoader for a wonder provided no warning that the archive was not found"

In today's Forums,
elie asks for a LWUIT
"Is it feasable for the new version of LWUIT that developer is able to have the capabilites to add checkboxes to a group like the radiobutton bcz we faced a lot of cases when we have a multiple selection in a group of dynamich choices where we could not create for each choice a checkbox object as per the radiobutton a simple for loop with one radiobutton object and a group can be dynamically created."

In the Blu-Ray Disc Java forum, gmoniey wants some tips for
getting started.
"I wanted to play around with blu-ray development a bit, but I'm not sure exactly where to get started. I have looked at the hd cookbook project, but I am still pretty lost as to what I need to do. Do I need a blu-ray burner to start with (I hope not), or can I get away with a simple dvd writer? Initially, I would like to get a simple 'Hello World' type of app up and running, then move onto playing videos, and finally, playing a video off of the internet If there are any available, could someone point me to any tutorials or examples of ramping up with blu-ray development?"

rah003 reports on some welcome JAR optimization in
swingx.jar getting smaller.
"just to let you know: I've removed all bean infos from the swingx.jar. They now reside in their own swingx-beaninfo.jar and thanks to that, swingx.jar is about 200KB smaller. Apart from the little size decrease of the main jar we should also get better integration with NetBeans."

xlinuks expresses skepticism about video in Java, in the post,
Re: My feedback on Update 10 and wishlist for the future.
"Thanks for pointing that out, across JavaOne 2008 they kept saying that update 10 will bring such and such features and that Sun will make sure the update process with push the updated JRE to all users so Java can eventually take over Flash. Looks like not since they won't have video support - Flash is used even on Sun's sites quite often for a single reason - because Flash supports video, does that mean that JavaFX (or video support for that matter) will not be included into the update 10? - the user will have to download and install a different peace of software to be able to watch video?"

Current and upcoming Java

Registered users can submit event listings for the href=""> Events Page using our href="">events submission form.
All submissions go through an editorial review before being posted to the

Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.

Anticipating one of Java 7's major features


We have a winner. On a Monday, no less. Congratulations.

The Von Bondies?