Skip to main content

Message in a Module

Posted by editor on June 29, 2007 at 8:41 AM PDT

The debut of Java modules

So, I go and complain about how slow things are, and what happens? One of the premiere features of JDK 7 drops its first snapshot. Which feature? Only the new module system for Java, addressing the complaints we've had about JARs for years. Obviously, I'll need to re-ping by featuring these on the front page again sometime next week.

For now, the debut comes to us courtesy of Stanley Ho, who offers a number of items in his info-dump weblog OpenJDK Modules project: Early snapshot, video, and more.

We have just made an early snapshot of the JSR 277 (Java Module System) and JSR 294 (Improved Modularity Support in the Java Programming Language) implementation available through the Modules project on OpenJDK:

This snapshot currently covers the core features (see Andreas's blog) described in the updated specification in JSR 277, and the reflective APIs defined in JSR 294. If you are wondering how the module system works internally and want to take an early look or even contribute, I encourage you to check out the Modules project.

Stanley goes on to describe some of the other goodies provided by the modules project, including a getting started guide, some samples, and a NetBeans project for those of you who want to hack on the module system code itself.

Expect to hear much more here about JAM's -- JAva Modules -- as the development of JDK 7 continues.

Also in today's Weblogs, Roger Kitain looks at
MobileFaces, Mobile JSF Kit and GlassFish:
"Two weeks ago, Ericsson announced that MobileFaces, a core library based on the JSF architecture for extending web applications to mobile browsing devices, went open source. The core MobileFaces library is currently based on the JSF 1.1 specification. The library not only makes it easier to develop mobile web applications, but it also utilizes a key extensible piece of the JSF architecture - RenderKits and Renderers."

Finally, Gregg Sporar has one of several wrap-ups from the first-ever Jazoon conference, which has him saying
Ja, Jazoon, adding that
"all software developer conferences should be held in movie theatres..."

Our latest JavaOne Community Corner Podcast is

j1-2k7-mtH08: Building Composite Applications Using BPEL, presented by by Prabhu Balashanmugam.
"Open ESB opens a new world of opportunities for enterprises to address business process management challenges. This session will provide a overview of how Java EE skills can be easily extended to solve some of the complex integration and business process management problems. It will also provide an overview of Open ESB, WS-BPEL 2.0 Implementation and the array of options to connect to enterprise services."

In Java Today,
the Rich Internet Applications blog at Canoo has an entry discussing experiences developing a "Music Pinboard" application with JavaJFX. The conclusions of JavaFX Script Productivity Part I of II: Learning include a need for visual tools for the beginning developer, and greater fidelity to Swing conventions for the experienced Swing developer. "Sun and the wider JFX community will have to improve its current level of Java-syntax and WYSIWYG tool support for JFX, if it is to find acceptance with programmer and non-programmer alike."

NetBeans will be taking on rival IDE's at a JUG Cologne shootout on July 3. "The rules are simple: Get on stage and give a 30-minute presentation. At the end of all segments, the panel and the audience will have an hour-long open discussion. The event will be held at the University of Cologne (Germany), with NetBeans Evangelist Roman Strobl representing the NetBeans IDE."

Version 1.5.1 of the Java 3D API is now available for download. Highlights of this release include: Windows Vista Support,
Automatic fallback to D3D pipeline if OpenGL unavailable, JOALMixer-based audio engine, Automatic mipmap generation, Pack200 support for Java Web Start applications, Support for new JNLPAppletLauncher utility (based on JOGLAppletLauncher), etc. See the release notes
for more information.

The latest Poll asks "How many open-source projects have you contributed code to?" Cast your vote on the front page, then check out the
results page for current tallies and discussion.

In today's Forums,
mikaelgrev is trying to work around
Java2D anti alias rounded corner fidelity problems.
"I'm writing some nice looking components, or I'm trying to at least.. Is there any way to affect the anti aliasing "weight" on normal draws, like lines and the rounded corners of a RoundRectangle2D? They are too heavy in general. You can see this for instance in the roundness of the buttons in the Numbus L&F. Look at the third "Close" button from the left in the top row. The top corners are too thick. This happens only for darker colors though."

pepe has an interesting GUI challenge:
Layouting components with a ratio
I have been looking over forums and every places i knew for the answer to my current problem. I have a JPanel, using GroupLayout to handle the content. Amongst the components, i have one that ought to be layed out with a fixed ratio (width dependent on height). Actually, i tried 'playing' with preferredSize/miniSize/maxSize, then each and every trick i could gather/discover. I can not _unfortunately_ apply aspect ratio to the content of my ratioed(?!) component, as the content must take all place to be visible.

Finally, teecee wants to know
how to get rid of absolute paths to WSDL in generated classes?
"I noticed that wsimport puts the location of the WSDL into the generated service class ( as an *absolute* file URL (...SERVICE_WSDL_LOCATION). This is of course a bad habit, since it will prevent these classes from running properly after the service has been deployed in a totally different environment where the WSDL is not present at this location or not present at all. For my application, this results in error messages like "Failed to access the WSDL at: file:/C:/..." whenever a SOAP fault is generated. Can wsimport be prevented from doing this, and forced into using a web application context-relative reference (like /WEB-INF/wsdl/foobar.wsdl) instead?"

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.

The debut of Java modules