The Artima Developer Community
Sponsored Link

Java Community News
Ethan Nicholas: More Details on Java Update 10

5 replies on 1 page. Most recent reply: Apr 14, 2008 12:19 PM by Leo Lipelis

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Ethan Nicholas: More Details on Java Update 10 Posted: Apr 11, 2008 4:14 PM
Reply to this message Reply
Summary
A key engineer on Sun's next-generation JRE project, Ethan Nicholas initiated many of the changes that led to a slimmer and more user-friendly JRE in Java Update 10. In a Sun Developer Network article, Nicholas shares more details of what's new in the latest JRE version.
Advertisement

Writing that,

Java 6u10 is the biggest update release ... of Java we have ever shipped, and the fact that there are no public API changes doesn't mean that you won't see anything to be excited about....

Ethan Nicholas, a key engineer behind many of the new features in Sun's next-generation JRE, shares more details of Java 6 Update 10 in Introducing Java 6 update 10.

While Java updates don't introduce new APIs, nor changes to existing APIs, Nicholas notes that:

Java 6 update 10 is a very different animal than the updates that preceded it. Java 6u10 pushes the envelope by adding more new features and functionality than in any previous Java programming language update release, including many that have been a long time coming...

The most immediately beneficial new feature, especially to developers and Java end-users, is a slimmer JRE download. Using a distribution mechanism that allows for the incremental download of the entire JRE, the initial download size for a typical Swing application ranges between 4-5 MB:

In the current build, the typical download size for Swing programs and Java applets is on the order of 4-5MB, compared to 14.4MB for the full JRE.

Applets also received a major architectural boost by running them outside the browser's process:

The next-generation plug-in runs applets outside of the browser in one or more separate processes. Applets still appear inside of the web browser window as they always have, but this means that it is now possible to use different JRE versions, command-line arguments, and configurations to run different applets...

The isolation provided by running the web browser and the JRE -- two very large, very complex pieces of software -- in separate process spaces improves the reliability of both, and gives applets the same flexibility and control over JRE configurations that other Java software has always enjoyed.

The way Update 10 achieves this is by allowing applets to take advantage of the same JRE hooks desktop JNLP applications have. As a side-benefit, applets can easily be turned into desktop applications, and vice versa, a desktop application can be deployed inside the browser:

With very little additional work, you can now deploy the same program as both an applet and a Web Start program, and still take advantage of JNLP services such as PersistanceService and FileSaveService.

In addition, applet deployment is aided by a new JavaScript library, simplifying applet inclusion in page:

The following HTML code is all it takes to ensure that Java 1.6 is installed and then a Java applet is launched:

  deployJava.runApplet({codebase:"http://www.example.com/applets/",
     archive:"ExampleApplet.jar", code:"Main.class",
     width:"320", Height:"400"}, null, "1.6");

Nicholas also discusses Nimbus, the new Swing look and feel:

A brand new, modern look and feel based on Synth, Nimbus provides a polished look to applications which choose to use it. And because Nimbus is drawn entirely using Java 2D vector graphics, rather than static bitmaps, it's tiny (only 56KB!) and can be rendered at arbitrary resolutions.

In the article, Nicholas also talks about the default settings for the Pack200 compression, as well as a streamlined JRE updater.

Do you think these new features are sufficient to cause a desktop Java comeback?


Dave Ford

Posts: 6
Nickname: dford
Registered: Jun, 2003

Re: Ethan Nicholas: More Details on Java Update 10 Posted: Apr 12, 2008 3:01 AM
Reply to this message Reply
> Do you think these new features
> are sufficient to cause a desktop
> Java comeback?
Not on my Mac.

Jiri Goddard

Posts: 54
Nickname: goddard
Registered: May, 2007

Re: Ethan Nicholas: More Details on Java Update 10 Posted: Apr 12, 2008 5:31 AM
Reply to this message Reply
I have also Mac, but the one you should blame is Apple at the first place. Would be nice to have some ex-Apple guys in Sun ;)

Nick Evgeniev

Posts: 16
Nickname: nevgeniev
Registered: Aug, 2007

Re: Ethan Nicholas: More Details on Java Update 10 Posted: Apr 13, 2008 4:05 AM
Reply to this message Reply
Does it mean that jre will behave just like maven? -- oops you've requested feature I didn't download yet, please wait... oops repository is down please try again later. :((

Patrick Wright

Posts: 15
Nickname: pdoubleya
Registered: Jun, 2005

Re: Ethan Nicholas: More Details on Java Update 10 Posted: Apr 13, 2008 1:13 PM
Reply to this message Reply
I think it's misplaced to talk about a comeback; rather, we should look at what you can do with applets, what people have done with them so far, what sort of applications this enables, etc.

Personally, I don't care if Java is competitive in making "compelling" websites or advertising banners and boxes. That would be one use of the technology, but apart from the difficulty in competing with the established technology (which appears to be Flash and related), I just don't find it a very interesting thing to do with the JVM on the client side.

But there are a whole slew of uses which this could open up. I think in many cases Java already has some foothold in these areas, but we might see a resurgence of interest. For example:
- My bank or other financials institution can offer high-security login, data retrieval, operations using a variety of crypto protocols written in Java. With the ability to download code at runtime, one could also choose--or the bank could enforce--a new protocol or implementation. A new plugin could make this a no-brainer for people who want a secure end-to-end connection.
- Remote terminal/console access from the browser. Secured admin access/control of remote processes. You should be able to write a much better interface (even application-plugin-based) for this than what you can do with AJAX.
- Educational materials, tools, guides, samples, etc.
- Research prototype software
- Cool experiments being done on top of the Java graphics APIs
- Language tools--in-browser consoles and small editors for languages that run in the JVM
- Better in-browser editors for blogs and online documents

These are things that interest me, but I'm not thinking like a consumer. I did spend a couple of hours today looking for applet implementations of the Game of Life--found quite a few, and with the new plugin (tested from Ubuntu running Firefox 3b5) it was a pretty pleasant experience to try these out. Many that I found are, unfortunately, written using AWT, but even that runs well. Actually, the level of experimentation going on in that one field (cellular automata) and shared with other people using applets made me think again that the task for Sun is to improve the browser support for Java as a platform, a target for interesting applications. Let the developers (of all sorts) decide what they'll do with it. I think we'll be surprised.

Leo Lipelis

Posts: 111
Nickname: aeoo
Registered: Apr, 2006

Re: Ethan Nicholas: More Details on Java Update 10 Posted: Apr 14, 2008 12:19 PM
Reply to this message Reply
This is great news. I think the Java platform is going to continue going strong due to its open source nature, first class multiplatform availability, and a continued stream of improvements such as this one.

That said, 4 megs is still too "fat" for those things that could be done with ~4k of html + ~200-300k of Javascript.

This still leaves a good niche for Java applets where you need something non-trivial done on the user's machine or where the existing browser APIs fail, for example if you want a nice multi-file upload widget on your site.

Flat View: This topic has 5 replies on 1 page
Topic: Rod Johnson's Predictions for Enterprise Java Previous Topic   Next Topic Topic: The Swing Wizard Framework

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use