Autodownload JRE 1.5.0_05
I'd like to require that users of our app are running jre1.5.0_05, which includes a bug fix that we'd like to incorporate in our app. I've tried to request that version via the <j2se> tag, but apparently its not available (nor is _04, or _03).
<j2se version="1.5.0_05" href="http://java.sun.com/products/autodl/j2se"/>
I've tried "1.5.0_05-05b" (the string returned from java -fullversion), as well as "1.5.0_04" and "_03". If I only specifiy 1.5.0, I seem to get 1.5.0_02.
Is there a way to automatically download a later version of the jre? Do I need to write my own download handler? Is there a way to see a list of the available jres at the sun autodl url?
Thanks,
Paul Christmann
This page is from a link in the current Java Plugin Guide's discussion of the Object tag. http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/autodl-files.html
Thanks for that link - I knew I had seen it, but couldn't find it again.
But I don't think that it helps me. Those links (and the doc they were referenced from) are describing how to initiate the jre download from the client clicking on the link on a webpage. (At least that's my understanding of them.)
I am looking for the way to get the automatic jre download from the jnlp protocol, so that when I run my app (via a desktop shortcut, for example), jws will check the <j2se> resource and download the jre version as needed.
I did try using various combinations of the urls from that doc (http://java.sun.com/update/1.5.0) as the href attribute of the <j2se> element and I still go the same error: a launch exception because JWS couldn't find the appropriate resource.
Thanks!
> Thanks for that link - I knew I had seen it, but
> couldn't find it again.
>
> But I don't think that it helps me. Those links (and
> the doc they were referenced from) are describing how
> to initiate the jre download from the client clicking
> on the link on a webpage. (At least that's my
> understanding of them.)
No, the are not that. They are for the purpose you want and describe below. The page lists the currently available autodl Java versions. 1.5.0_03 is the most current.
>
> I am looking for the way to get the automatic jre
> download from the jnlp protocol, so that when I run
> my app (via a desktop shortcut, for example), jws
> will check the <j2se> resource and download the jre
> version as needed.
>
> I did try using various combinations of the urls from
> that doc (http://java.sun.com/update/1.5.0) as the
> href attribute of the <j2se> element and I still go
> the same error: a launch exception because JWS
> couldn't find the appropriate resource.
>
> Thanks!
> But I don't think that it helps me. Those links (and the doc they were referenced from) are describing how to initiate the jre download from the client clicking on the link on a webpage. (At least that's my understanding of them.)
Then I'm confused. I've tried using those urls to get 1.5.0_03, but I still get the same launch exception. I've tried both of these:
<j2se version="1.5.0_03" href="http://java.sun.com/update/1.5.0"/>
and
<j2se version="1.5.0_03" href="http://java.sun.com/update/1.5.0/jinstall-1_5_0_03-windows-i586.cab"/>
Neither work. (And how would that latter one work for non-windows jre downloads?)
Is there another syntax I should use? What exactly should I put for the version and href value if I want to use 1.5.0_03?
The page that I found this list of URLs linked from (http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/launch.html) describes these urls as what to use to download a jre as a .cab file for windows only as part of an <object> tag in an html doc. That particular use isn't what I want - though that is far from a definitive statement that they aren't the right urls. I just can't get them to work.
These are a different set of URLs than are described in the JNLP File Syntax docs (http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#resources) references http://java.sun.com/products/autodl/j2se. I can get the correct behavior with 1.5.0_02 at that url (just nothing besides than that version):
<j2se version="1.5.0_02" href="http://java.sun.com/products/autodl/j2se"/>
> Then I'm confused. I've tried using those urls to
> get 1.5.0_03, but I still get the same launch
> exception. I've tried both of these:
>
> <j2se version="1.5.0_03"
> 3" href="http://java.sun.com/update/1.5.0"/>
>
> and
> <j2se version="1.5.0_03"
> 3"
> href="http://java.sun.com/update/1.5.0/jinstall-1_5_0_
> 03-windows-i586.cab"/>
>
> Neither work. (And how would that latter one work
> for non-windows jre downloads?)
It won't. Note that the autodl is only for Windows:
Detect if Java Web Start is installed
If so, launch the application.
If not, detect if user is running IE on Window.
If so, provide link to a page that can auto-install the JRE for Windows
If not, provide a link to the general download page for the JDK/JRE.
>
> Is there another syntax I should use? What exactly
> should I put for the version and href value if I want
> to use 1.5.0_03?
>
> The page that I found this list of URLs linked from
> (http://java.sun.com/j2se/1.5.0/docs/guide/javaws/deve
> lopersguide/launch.html) describes these urls as what
> to use to download a jre as a .cab file for windows
> only as part of an <object> tag in an html doc. That
> particular use isn't what I want - though that is far
> from a definitive statement that they aren't the
> right urls. I just can't get them to work.
>
> These are a different set of URLs than are described
> in the JNLP File Syntax docs
> (http://java.sun.com/j2se/1.5.0/docs/guide/javaws/deve
> lopersguide/syntax.html#resources) references
> http://java.sun.com/products/autodl/j2se. I can get
> the correct behavior with 1.5.0_02 at that url (just
> nothing besides than that version):
>
> <j2se version="1.5.0_02"
> 2" href="http://java.sun.com/products/autodl/j2se"/>
I can't shed any further light on the availability or non-availability if different jJava versions except to note that this page you reference:
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/launch.html
has a link to the autodl list I provided (in the 2nd yellow Note box), and that you have to use an object tag and download a .cab file to do this, and that it works only for Windows.
Maybe I'm missing something important here. I don't want to use the technique described on the webpage that describes how to build an appropriate HTML page to get a JRE installed.
I'm trying to use the part of the JNLP spec that lets me specify a jre via a <resource> element in the JNLP file itself. Should I not try to use that?
We have customers that are now running the app from desktop shortcuts, so they are not visiting any kind of html page as described in that developer page, but I want to enable automatic JRE upgrades.
It seems the documentation you describe is applicable for using a html link to launch the appropriate jnlp within the correct jre (only for windows IE). But the JNLP spec seems to describe more comprehensive behavior for downloading a JRE. Am I misreading the JNLP spec?
pchristmann is correct. The sited page describes a method for deploying a JNLP application over the web and ensuring that the desired version of Java is installed at the same time.
Everyone else is also more or less correct that the mechanism that supports this feature, is the same mechanism that supports the <version> tag in the JNLP file. For various reasons, Sun does not make every release of the JRE available through the auto-download mechanism. According to the website update 3 should be available, but it sounds like only update 2 is currently available.
I believe that update 6 might become available soon, but I can't guarantee this or speculate on the day it will become available.
If you positively have to have a specific version of the JRE available, you can create and specify your own auto-download server. This is described in
<jdk-installdir>/sample/jnlp/jreinstaller/README
Mike.
MikeR,
Sorry to vent on you if you're just the messenger, but I have to ask WHAT IS WRONG WITH YOU PEOPLE AT SUN?
"For various reasons, Sun does not make every release of the JRE available through the auto-download mechanism."
"...I believe that update 6 might become available soon, but I can't guarantee this or speculate on the day it will become available."
WHY NOT? If you release the JRE, you should release the autodl, END OF STORY. And not whenever you decide to get around to it, but on the same **** day you release the JRE, or it's not a release!!!!!!!!!!!!!!
If Web Start is an official part of J2SE, then please start treating it like one!
"According to the website update 3 should be available, but it sounds like only update 2 is currently available."
Your website is out of date. I'm using a PingAutodl program (from the gang at the Unofficial Web Start FAQ, who by the way, gave up on Web Start and have abandoned updates to this site) to see what's available today, and it doesn't match autodl-files.html.
When Web Start works, it's fantastic, but I've lost track of the number of times over the years that I've regretted ever hearing about it. I have to maintain a huge FAQ for our users that details what Web Start problems to troubleshoot and workaround depending on what subversion(s) of Web Start they might have on their system, registered with the browser, etc. etc.
I remember reading a thread about frustration with what's available for autodl about TWO YEARS AGO. I can't believe you haven't gotten your act together yet.
I am facing the similar problem. My application using webstart is not being able to do automatic download of JRE 1.5.0_06 .
My jnlp file has entry under resources :
<resources>
<j2se version="1.5.0_06" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="100M" max-heap-size="512M"/>
.
.
</resources>
Is this problem arising because of some syntax problems, or sun is not supporting autodownload of 1.5.0_06.
Any clues ?
Thanks,
Prabhaker
see: http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#603we plan to add 1.4.2_17 and 1,5,9)07 to the list this summer.full support for the universal auto downloader has been put off till fall./Andy
I have been facing the same problem with j2se1.3. - Unable to locate the resource :
But i found out a way, downloaded the file on my own server and gave the users with the link and also in the jnlp file. Thats the only way it worked out for me.
I tried too much time trying out different ways but no success and its more frustration. Atleast for the time being i am less frustrated ;)
Also check out these sites if you want more info about autodownload features.
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/autodl.03.06.html
sabya at 2007-7-15 23:18:20 >
