Auto download JRE

Hello,
One of the described features of webstart is the auto-download of the specified JRE (if not yet installed)
I want to place the JRE on my local server to prevent downloads from the Sun site when the JRE is not yet installed on the client PC.
How can I do this ?
Thanks for the info,
Piet

As I said in previous response, the complete jre installer source is included in the JDK/samples directory.
You cannot use the standard tag: href="http://java.sun.com/products/autodl/j2se" alone, because this directs java web start where to download the jre from.
if you wan to accept either a jre downloaded from sun, or one loaded from your company server, but want only to force autodownload only from your companies server you would need to list multiple j2se elements:
<j2se version="1.4.2*" href="http://yourcompany.com/products/autodl/j2se">
<j2se version="1.4.2*" href="http://java.sun.com/products/autodl/j2se">
then if either are there it will use it, otherwise it will try to download from the first one.
It sounds more like most people want a local client configuration, that says where to download jre from when the standard href (href="http://java.sun.com/products/autodl/j2se") is given.
there is the config entry: deployment.javaws.installURL , but that won't do what you want. (that will cause platform version specifications (those w/o href) to download from it's value, but it will also set that value in the location field of jre's discovered on the system (as on windows thru the registry), which will cause a non-match on jnlp files specifying sun product version (ie: with href="http://java.sun.com/products/autodl/j2se")
What we really need is a configuration parameter that means "alternative download url" so that anyone requesting either a product version, or a platform version with the href equal to the value of the property deployment.javaws.installURL, will go to the alternative url to attempt the download.
I'll file such an RFE for the next version.
/Dietz

Similar Messages

  • Auto Download JRE from Intranet using JWS

    I'm pretty new to JWS, I want to download a specfic JRE version from my Intranet or from a directory on the Unix server (webserver). I have downloaded 1.4.2_11 from Sun web site to http://webserver01.intra.xyzabc.com:8000/sample. What step I must do to autoload when the user does not have any JRE installed on desktop
    please help me.
    Thanks
    Baski
    Sample.jnlp:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Sample Program -->
    <jnlp
    spec="1.0+"
    codebase="http://webserver01.intra.xyzabc.com:8000/sample"
    href="Hello.jnlp">
    <information>
    <title>Java Web Start, Sample Program</title>
    <vendor>Java Web Start Home Page</vendor>
    <!--homepage href="docs/help.html"/ -->
    <description>This is a Sample Program</description>
    <offline-allowed/>
    </information>
    <resources>
    <jar href="Sample.jar"/>
    <j2se version="1.4.2_11" href="http://webserver01.intra.xyzabc.com:8000/sample"/>
    </resources>
    <application-desc main-class="Sample"/>
    </jnlp>

    Note that only certain version are available for
    auto-download, and the published list may be
    out-of-date (it was the last time I checked.)
    (grumble) I'd have thought Sun might be able to get
    the technology together to generate the list of available
    versions actively (e.g. using JSP/servlets).
    There was recently a question why no version
    NN available?, my reply linked to the list of
    available versions and asked Do you see
    your requested version, listed here?
    I probably led the questioner entirely astray.

  • JavaWebStart JRE 1.4.2 auto-download installer sample

    Environment: WinXP - Pro SvcPack2, jdk1.5.0_08
    I am a JAVA newbie attempting to learn more. In trying to learn more about the JRE auto-download installer, I tried to build the sample installer using the README found in the jdk1.5.0_08\sample\jnlp\jreinstaller directory as a guide -- without success.
    I went the GNU website and got a copy of "gnumake". I then went to the jreinstaller\build\win32\jreinstallers directory and ran 'gnumake'. I got the following error;
    process_begin: CreateProcess(NULL, uname, ...) failed.
    process_begin: CreateProcess(NULL, uname, ...) failed.
    process_begin: CreateProcess(NULL, uname, ...) failed.
    for i in j2re1_4_2/GNUmakefile ; do \
    echo ">>>Recursively making "$i" "all"..."; \
    C:/Program Files/Java/jdk1.5.0_08/sample/jnlp/jreinstaller/build/win
    32/gnumake -f $i bundle || exit 1; \
    echo "<<<Finished Recursively making "$i" "all"." ; \
    done
    i was unexpected at this time.
    gnumake: *** [all] Error 255
    I "assume" the problem I am having is a "setup" issue. Can anyone help point me in the right direction to compile this.
    Thank you!!!

    Well, I got over one hurdle by using a SUN document that describes setting up the environment for building a JDK under Windows.
    I am using the Cygwin command binaries for compilation.
    Now when I try to build the sample, I get the following error;
    C:\Program Files\Java\jdk1.5.0_08\sample\jnlp\jreinstaller\build\win32\jreinstallers>C:\cygwin\bin\make all
    for i in j2re1_4_2/GNUmakefile ; do \
    echo ">>>Recursively making "$i" "all"..."; \
    /usr/bin/make -f $i bundle || exit 1; \
    echo "<<<Finished Recursively making "$i" "all"." ; \
    done
    Recursively making j2re1_4_2/GNUmakefile all...make[1]: Entering directory `/cygdrive/c/Program Files/Java/jdk1.5.0_08/sample/jnlp/jreinstaller/build/win32/jreinstallers'
    cl /IC:/Program Files/Java/jdk1.5.0_08//include /IC:/Program Files/Java/jdk1.5.0_08//include/win32 -c -o bin -Fobin/WindowsInstaller.o ../../../src/win32/jreinstallers/WindowsInstaller.c
    make[1]: *** [bin/WindowsInstaller.o] Error 53
    make[1]: Leaving directory `/cygdrive/c/Program Files/Java/jdk1.5.0_08/sample/jnlp/jreinstaller/build/win32/jreinstallers'
    make: *** [all] Error 1
    Any idea what the 'Error 53' means?

  • JRE 1.4.1 auto-download URL?

    If it is available, what is the "codebase" URL for the auto-download of JRE 1.4.1 for use in the <object> tag?
    Thanks all,
    Mark

    I found it:
    http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0

  • Multi-language JRE via auto-download?

    It seems that the JRE installed via the auto-download cab file for Windows is not the multi-language version. If I install the JRE by hand and then launch my Web Start application, I have no issues accessing other encodings like JIS_X0201. However, if I use the auto-download feature described in the Java Web Start tutorial (using http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=6,0,0,0...) I get an English-only version and end up with UnsupportedCharsetExceptions when I access other encodings.
    So, in short: Is there a way to get the multi-language JRE via auto-download?
    Thanks!

    Thats the GUI I am talking about
    Confirmation Needed - Print
    Print Request
    Applet would like to print . Do you want to proceed?
    Don't show this dialog box again?
    Yes No
    I want this to be in Portuguese, my native language.
    I changed the code like this:
    import java.util.Locale;
    import java.util.ResourceBundle;
    private String language = "br";
    private String country = "BR";
    Locale currentLocale;
    ResourceBundle messages;
    currentLocale = new Locale(language, country);
    messages =ResourceBundle.getBundle("MessagesBundle",currentLocale);
    ( I included )
    ( I algo created those files )
    MessageBundle.properties
    Dialog = Confirmation Needed - Print
    Title = Print Request
    Text = Applet would like to print. Do you want to proceed?
    Warn = Don't show this dialog again
    MessageBundle_br_BR.properties
    Dialog = Confirma��o Requisitada - Impress�o
    Title = Requisi��o de Impress�o
    Text = O Applet deseja imprimir. Deseja prosseguir?
    Warn = N�o mostre esta caixa de di�logo novamente.
    Everything according to tutorial.
    But I did not understand how this change a dialog that came from the JRE!!
    Angel Portal

  • Can the JRE auto download support in Vista using Java 5?

    Hi,
    I am investigating the JRE auto download and upgrade in intranet on Vista. But it seems the JRE auto download is disabled in Java 6.
    http://pscode.org/jws/upgrade.html
    Is it possible I achieve this in Java 5?
    Thanks a lot!

    a sample of the jreinstaller is provided in the samples directory go the 1.5 JDK.
    /Dietz

  • 1.4.2 JRE auto-download signature problem

    Hi,
    When I try to use the 1.4.2 cab file for auto-download, I find that there is a certificate signature problem when it installs. It comes up with a message:
    "Warning: The authenticity of this content cannot be verified, therefore it cannot be trusted.
    Problem listed below:
    Content does not match the signature."
    I'm not sure that it happens every time, but at least half of the time.
    This is a problem because we will supply this cab file with our product, so that the customer has an option to install it. However, it will look like we're supplying something unsecured.
    Here's the location of the cab file in question:
    OBJECT CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab"
    Anyone else experienced this? Is this a bug?
    Thanks,
    Mike.

    This seems to the same problem as in bug 4908234, which currently has status "In progress, bug".

  • JRE auto download version

    Hi,
    I�m involved with supporting an application that uses applets. If a user opens a browser (IE 6.0) and starts the applet, the JRE download and install process automatically starts, if the client machine doesn�t have a JRE installed.
    The problem is that it always downloads JRE 1.4.2_03, but we want it to download JRE 1.4.2._10 or 1.4.2._11. Is this a configuration parameter within the browser, or is it down to the applet itself? The applet is served up by an application running on IIS, but I think this more of a client side issue, right?
    Any help would be appreciated.
    Thanks,
    Dave.

    You can use the htmlconverter to convert applet tags to object tags.
    Since IE is already downloading the jre I guess you are using an object tag.
    For IE this object tag has a clsID and a codebase, codebase is the
    location of the cab file (activex control) IE needs to download and install
    if the clsid is missing from it's installed activex controls.
    If you use the htmlconverter to convert an applet tag in a html page there
    are options you can choose for browser and java version.
    http://www.google.com/search?complete=1&hl=en&q=site%3Asun.com+applet+versioning&btnG=Google+Search
    will get you here:
    http://java.sun.com/products/plugin/versions.html

  • Auto download of jre with jws 1.2

    We use JWS for downloading JRE from a local server, (using the concept proposed by T.Dunst http://www.vamphq.com/jwsfaq.html#ownj2se). Our Installer class is based on Dale Searle's Java Runtime Installer (also found on above link), including his hack for using the same downloaded jre for all users.
    This works fine with jws1.0.1, which stores the downloaded jre in an extension directory in the Java Web Start installation directory.
    Problem is that now that we upgraded to JWS1.2, jws default location for the extension directory is in the users profile, and thus it can't be accessed by all users.
    Anybody have an idea of how to solve this?
    On code level the difference is that, considering the following code in my Installer class:
    private static String installPath;
    private static ExtensionInstallerService service;
    service = (ExtensionInstallerService) ServiceManager.lookup(
    "javax.jnlp.ExtensionInstallerService");
    installPath = service.getInstallPath();
    for JWS1.0.1, installPath will be the path to Java Web Start directory
    while for JWS1.2 it will be the path to the User Profile.
    My first idea to solution was to just set the value for installPath to the path to Java Web Start directory, but I don't know how to get this information using JWS1.2. Anyone else knows?

    However, I don't see how it solves my current problem with one
    download for all users on the same machine. Unless I'm misstaken,
    using this Web Start Service Pack with JWS1.2 will still store the
    downloaded jre in the users profile and it will thus be unreachable
    for other users, right? If you want to discuss the Lopica Web Start Services Pack I invite you to join the lopica-talk mailing list @ http://lists.sourceforge.net/lists/listinfo/lopica-talk
    I'm not the author of the package and, therefore, can't answer your question. Please, ask Richard on the lopica-talk mailing list how you can adapt the package to your needs.
    - Gerald

  • Java web start unable to auto download java 1.6.0_14

    Hi,
    My application runs on java 1.6.0_14 and i want clients to use either 1.6.0_14 or higher while running the application. In the JNLP file i have mentioned j2se version as 1.6.0_14+
    If the client machine has a java version lesser than 1.6.0_14, Java web start is not automatically downloading the given version from sun auto download site.
    Isn' t this version supported by Sun for auto download? If yes, how to get around this problem?

    Thanks..
    We do have a web page from which we access the jnlp and that web page has javascript to force download of a specific version of JRE. Once it downloads the application on client machine, it creates an icon on the desktop.
    If the application and jnlp is changed on the server, we want clients to go through the icon on desktop and still get the version of jre mentioned in the updated jnlp rather than having them go through the web page again do download the new JRE required...

  • Auto download from internal servers?

    How do I setup an internal server to provide the JRE for auto download?
    Our web start application runs on an private intranet with no internet access.
    I need to know what files need to be loaded on the server. I understand that the .cab file is one of them.
    What are the other files that need for be placed on the server for auto download to function?

    How do I setup an internal server to provide the
    JRE for auto download?AFAIU, it only requires that you have the installer
    available on the intranet, and provide an HREF
    that points to it.

  • 1.4.2 not available for auto download via JWS

    I just tried to change my jnlp to use 1.4.2 and it will not auto download from Sun. Does anyone know if/when this will be available?
    The application has requested a version of the Java 2 platform (JRE) that is currently not locally installed. Java Web Start was unable to automatically download and install the requested version. The JRE version must be installed manually.
    <j2se version="1.4.2*" max-heap-size="144M"/>

    Yeah, I'd rather not have had to do all this work too.. I'm not clear on wether Sun intend to deprecate this JWS feature in favour of Java Update which should arrive with the next 1.4.2 revision. It's certainly true the support was even worse than I feared before I pinged the autodl server responses - jvms that used to work have vanished, indeed the whole international jvm request service ("http://java.sun.com/products/autodl/j2se/international") seems to have been suspended.
    As of tonight the a request for all the 1.3 & 1.4 Sun runtime products returned:
    <pre>
    Checking for version (1.3.0) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.0_01) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.0_02) - Download version 1.3.0_02 available
    Checking for version (1.3.0_03) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.0_04) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.0_05) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_01) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_01a) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_02) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_03) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_04) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_05) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_06) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_07) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.3.1_08) - Download version 1.3.1_08 available
    Checking for version (1.4.0) - Download version 1.4.0 available
    Checking for version (1.4.0_01) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.4.0_02) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.4.0_03) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.4.0_04) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.4.1) - Download version 1.4.1 available
    Checking for version (1.4.1_01) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.4.1_02) - Download version 1.4.1_02 available
    Checking for version (1.4.1_03) - Not Available, error message "11 Could not
    locate requested version"
    Checking for version (1.4.2) - Not Available, error message "11 Could not
    locate requested version"
    </pre>
    Pretty poor support, hence my continued griping in: http://www.javadesktop.org/forums/thread.jspa?threadID=84&tstart=0
    - Richard

  • Auto download 1.6.0_10

    we have run into a problem that is resolved in 1.6.0_10. We would like to make the install occur from our jnlp.
    Ex:
    <j2se version="1.6.0_10"
    It doesnt appear to be available yet from the auto download. Can someone update the servlet to make the download available? Any estimate of when would be greatly appreciated.

    I'm running up against the same thing.
    bug # 6669818 - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6669818
    That's causing our web start app to die when trying to connect. It works fine with 1.6.0_10, but not with any release prior to that because we need 1.6.0_05 or later for some sealed libraries that we are using.
    Any news on when 1.6.0_10 will be available through the auto-download system would be appreciated.
    I noticed that someone from Sun mentioned in these forums that a JRE is usually available from the auto-download URL within a couple of weeks of its release - http://forums.sun.com/thread.jspa?threadID=704112&messageID=4082098
    What was the release date for 1.6.0_10 anyway? I see an article from April this year introducing it (http://java.sun.com/developer/technicalArticles/javase/java6u10/), but no word on when exactly it was officially released.

  • 1.4 Auto-download

    Hi, the auto download of the 1.4 jre is failing with "Unsigned application requesting unrestriced access to the system" during the auto intall of the jre from
    <j2se version="1.4.0*" href="http://java.sun.com/products/autodl/j2se">.
    Has anyone else seen this?
    Thanks
    Csquill

    I believe this is because you are running with a 1.2.x JRE. You need 1.3 or higher to be table to understand the signing necessary to do the auto download/install.

  • Help! iTunes auto-downloading apps I don't use anymore

    I don't want iTunes to re-download Broken Sword and Asphalt 5 for the iPad/iPhone.  My iTunes is sync'd with my Dropbox and it wastes like a GB of space between the two of them.  I have it unchecked in the store section of iTunes to automatically download apps.  But after syncing my iPhone they start to download EVERY TIME.  Drives me nuts.  I've deleted, unchecked the box that says to auto download, etc.  I don't have them on my devices either.  I will never ever play those games again even though I paid for them.  What can I do to have it quit doing that?

    try sending an email to the iTS customer service using this form and ask the folks there to remove the item(s) from your download queue.

Maybe you are looking for