views:

86

answers:

1

I'm developing a rich Internet application that requires a Java 7 platform. How can its associated JNLP file ensure the installation of that platform?

I've tried several variations on the following in the JNLP file (mostly playing with the URL in the "href" attribute):

<jnlp ...>
  ...
  <resources>
    <java version="1.7+" href="http://download.java.net/jdk7/m5"/&gt;
    ...
  </resources>
</jnlp>

but nothing seems to work -- I always wind up being sent here, where there is no Java 7 release.

+1  A: 

As far as a quick google search says, Java 7 has not offically been "released" yet -- you can get the latest early access snapshots, but it seems September 2010 or later is the release date.

Dorrene Brown
I know it hasn't been released. The question is whether or not it can still be downloaded via JNLP.
Steve Emmerson
In the section about JRE resources, the JNLP File Syntax documention repeatedly uses the URL "http://java.sun.com/products/autodl/j2se". It also does not state that "java" is a valid resource (like how you are using it), so take that with a grain of salt. I would assume that until Java 7 is completely released it would not be supported in Web Start.Just out of curiosity, though, why are you requiring Java 7? There are some great improvements but I'm not sure if I personally would put into the field something that uses technology that bleeding-edge.
Dorrene Brown
I need the directory monitoring capabilities of Java 7. Also, I happen to agree with the design tip that Alan Cooper gave in chapter 10 of "About Face": "The program should perform optimally on hardware that doesn't exit yet." (after substituting "platform" for hardware", of course).
Steve Emmerson