Web start fires up the installer twice

All
We are seeing some issues where java web start is invoking the installer twice for some reason instead of once.
When we install the application using the installer it installs correctly and everything looks good .But whenever the user clicks on the shortcut icon it tries to install the application again by downloading all the jar files and gets the installer screen again .This happens twice but im not sure why.
I tried this on two JRE .14 and .15 and both had same problems.
Im pasting the two JNLP files we are using . The first JNLP is the main jnlp file which refers to the installer jnlp using the extension tag.
-----------------------------------------------------------Main JNLP-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="$$context/CCA" href="$$context/CCA/AuthoringLaunch.jnlp">
<information>
     <title>Sample Learning Studio</title>
     <vendor>Sample Corporation</vendor>
     <description>Sample</description>
     <icon href="$$context/CCA/resources/images/desktopIcon.png"/>
     <icon kind="splash" href="$$context/CCA/resources/images/splash-screen.png"/>
     <offline-allowed/>
     <shortcut>
               <desktop/>
               <menu submenu="Sample Learning Studio"/>
     </shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="prompt-update"/>
<resources os="Windows" arch="x86">
     <nativelib href="$$context/CCA/lib/swt-3.5M1-win32-win32-x86.jar" download="eager"/>
     </resources>
<resources>
     <j2se version="1.6+"/>
     <jar href="$$context/CCA/lib/jna_WindowUtils.jar" download="eager"/>
     <jar href="$$context/CCA/lib/jna-3.0.7.jar" download="eager"/>
          <jar href="$$context/CCA/lib/MozillaInterfaces-1.8.1.3.jar" download="eager"/>
          <jar href="$$context/CCA/lib/derby.jar" download="eager"/>
          <jar href="$$context/CCA/lib/ibatis-2.3.0.677.jar" download="eager"/>
          <jar href="$$context/CCA/lib/xml.jar" download="eager"/>
          <jar href="$$context/CCA/lib/activation.jar" download="eager"/>
          <jar href="$$context/CCA/lib/mail.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringBuisnessObjects.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringBrowser.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringCore.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringCourse.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringCommands.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringComponents.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringDataObjects.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringDb.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringExceptions.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringLogger.jar" download="eager"/>
     <jar href="$$context/CCA/lib/AuthoringLicense.jar" download="eager"/>
     <jar href="$$context/CCA/lib/AuthoringMain.jar" main="true" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringRequestBeans.jar" download="eager"/>
     <jar href="$$context/CCA/lib/AuthoringUtils.jar" download="eager"/>
     <jar href="$$context/CCA/lib/resources.jar" download="eager"/>
          <extension name="AuthoringInstaller" href="$$context/CCA/lib/AuthoringInstaller.jnlp"/>
     <property name="application.context" value="$$context"/>
</resources>
     <application-desc main-class="com.sample.authoring.main.ApplicationMainLaunch"/>
</jnlp>
-----------------------------------------------------------Main JNLP-----------------------------------------------------
Here is the installer JNLP file
--------------------------------------------------------------Installer JNLP-----------------------------------------------------
<jnlp codebase="$$context/CCA/lib" href="$$context/CCA/lib/AuthoringInstaller.jnlp">
<information>
<title>Sample Learning Studio</title>
<vendor>Sample Corporation</vendor>
<description>Installer</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
     <j2se version="1.6+"/>
<jar href="$$context/CCA/lib/resources.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringExceptions.jar" download="eager"/>
          <jar href="$$context/CCA/lib/AuthoringLogger.jar" download="eager"/>
     <jar href="$$context/CCA/lib/AuthoringUtils.jar" download="eager"/>
<jar href="$$context/CCA/lib/AuthoringInstaller.jar" main="true"/>
<property name="deployer.context" value="$$context"/>
<property name="deployer.codeBase" value="CCA"/>
<property name="deployer.configFile" value="deploy.xml"/>
<property name="deployer.configDir" value="conf"/>
</resources>
<installer-desc main-class="com.sample.authoring.installer.InstallationWizad"/>
</jnlp>
--------------------------------------------------------------Installer JNLP-----------------------------------------------------
I'm not sure why the installer was getting fired twice .
To solve this problem i tried to update      <shortcut> tag to have a online attribute <shortcut online="false">
By doing this it prevented the installer from firing up twice but it alerts the user with another alert which tells "The application has requested to go online ".
Can someone let me know why this would happen.
Also let me know if there is a way to have java web start application always launch offline and check for updates?
Thanks
Chetan

In this very same forum BenGlacy said he got there (no online launch and check for update) by removing the jnlp href attribute.
Anyway there's something that doen't make sense in your post
Chetan_Loves_Java wrote:
When we install the application using the installer it installs correctly and everything looks good You don't install using an installer, it's meant to execute una-tantum tasks before app's first launch. If your installer does anything different, that could be the reason of your problems. By the way, in Java Web Start you don't install (period), you launch.
If you, instead, mean the javaws -install option, please check all hrefs in JNLPs and look for 'twin' entries in your cache (javaws -viewer), resources are chached by URL, even the slightest difference can make them appear like 2 different voices.
Application tries to go online 'cause it has an absolute href (instead of one relative to the codebase), althought, I gotta say, you may find in this forum that absolute href happened sometime to solve some problems. About this, why are you using absolute path (repeating codebase) on every resource (afaik, this never solved any probleam)?
Bye.

Similar Messages

  • Poll: What is Your Web Start Project of the Year 2003?

    Hi,
    The Saturn Times announced the nominations for the "Web Start Project of the Year 2003" award today.
    The line-up includes:
    * NetX
    * OpenJNLP
    * Xito BootStrap
    * JDistro/Warf
    * Web Application Launcher (WAL)
    * Web Start Services Pack
    * Apollo
    * Rachel
    * Lopica Web Start Tools
    * Vamp Ant Task Suite
    Cast your vote today and help find the winner.
    Full story and pollstation @ http://lopica.sourceforge.net/times/2003/12/poll_what_is_your_web_start_project_of_the_year_2003.html
    - Gerald

    Hi,
    Due to popular demand here are the links to the ten Web Start Project of the Year 2003 contenders for easy reference.
    * NetX online @ http://jnlp.sourceforge.net/netx
    * OpenJNLP online @ http://openjnlp.nanode.org
    * Xito BootStrap online @ http://xito.sourceforge.net/projects/bootstrap
    * JDistro/Wharf @ http://www.jdistro.com
    * Web Application Launcher (WAL) @ http://w-a-l.sourceforge.net
    * Web Start Services Pack @ http://lopica.sourceforge.net/services
    * Apollo @ http://ajax.sourceforge.net/apollo
    * Rachel @ http://rachel.sourceforge.net
    * Lopica Web Start Tools @ http://sourceforge.net/projects/lopica
    * Vamp Ant Task Suite @ http://vamphq.com/ant.html
    - Gerald

  • Pick Your Web Start App Of The Week

    Hi,
    I invite you to post your comments about your favorite Web Start app here.
    Every week I will profile a different Web Start App at "The Saturn Times" - http://vamphq.com/times - including your quotes.
    Post early, post often and help promote all the great Web Start apps out there.
    - Gerald

    Your jnlp checker Vanessa is quite useful.
    Is the source available, because I would like to fix a bug or two I noticed.
    Then check out Gentleware's Poseidon.
    http://www.gentleware.com/download/Poseidon4umlJWS.jnlp
    It is a commercial version of Tigris.org's ArgoUML, a free UML editor,
    which is webstartable as well:
    http://argouml.tigris.org/files/documents/4/0/0100/ArgoUMLWebStart.jnlp
    Interesting about Poseidon was how they implemented key registration for their JWS app, a common task for commercial applications.
    However Poseidon unwillingly illustrates limitations of the present JWS implementation - this beast is large (about 10-30 MB).
    I loaded it at home via an ISDN link (8KB/s) and it took much time. The download was interrupted for several times, I hadn't start to download again from zero, because the app is splitted into several smaller jars, but still had to reload interrupted jars.
    Some days later it turned out that the disk I had the JWS cache on got full. Thus I wanted to move my precious downloads to another partition, which is not possible. You can't move cache contents elsewere, so I had to redownload it again later (ouch).
    An interesting bit about ArgoUML is how they speed up their large app by forcing class loading in a background thread. I saw that in their source and want to try out that technique myself soon, perhaps it gives a little speed advantage.
    Regards,
    Marc

  • Web Start Security and the Cache

    Hi,
    If the jars are signed and download occurs then webstart will verify the signature and tell the user that jars signed by user xxxxx are about to be run. Then the jars are cached by web start. My question is, what is to stop an attacker from replacing the jars in the cache with malicious ones? Does web start verify the signature on the jars when they are loaded from the cache aswell, thus preventing the jars from being changed? Or does the versioning system web start uses somehow prevent replacing the jars.
    Thanks for any help,
    Dave.

    How would an attacker replace the jars with malicious ones? Through the initial signed jars? That means the initial ones are already malicious anyway, so why bother? After all, the user has already given those signed jars all-permissions anyway...
    I'm sure you could devise some other means to do it using virus-like software, but all this would give you far greater control over the users machine than anything those cached jars could ever give you, even if the JNLP client did no checking on its cache whatsoever.

  • No Icons in Start menu after the Installation of 9i

    Hello,
    unfortunately the installation program of developer suite 9i did not create any icons in my start menu. is there any way of installing them manualy using the installer ? or can somebody just send me them (the complete icon set including discover, reports, forms and so on...) to this email: [email protected]
    Thanks in advance
    regards

    The icons are contained within the executales. To create an icon for Forms, just select to create a shortcut for the Forms ifbld90.exe file and this will have the Forms icon. There is a folder in the Explorer that contains all program icons that are accessible from the start menu. Just drag and drop your short cut into it.
    I would suggest to rerun the installer if not already done.
    Frank

  • SMC 4.0 doesn't show correct start page after the installation

    Hello,
    after installing SMC 4.0 in a Solaris 10 sparc server it is not possible to get the start page at http://host:6789
    I just get in the browser:
    usage: head [-n #] [-#] [filename...]
    Copyright � 2007 Sun Microsystems, Inc. All rights reserved. U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Use is subject to license terms. This distribution may include materials developed by third parties.Portions may be derived from Berkeley BSD systems, licensed from U. of CA. Sun, Sun Microsystems, the Sun logo, Java, Netra, Solaris, Sun Ray and Sun StorEdge are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
    more details:
    # svcs -a|grep web
    disabled        8:30:48 svc:/application/management/webmin:default
    disabled        8:30:49 svc:/system/webconsole:console
    online          8:31:53 svc:/application/management/sunmcwebserver:default
    # cat /etc/release
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
               Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                            Use is subject to license terms.
                                Assembled 16 August 2007
    root@jumpstart:/ # es-validate
    This script will help you in validation of Sun (TM) Management Center.
    Validation Tool Version         : 4.0
    Host name                       : jumpstart
    Number of CPUs                  : 2
    Platform                        : SUNW,Sun-Fire-V215
    Operating System                : SunOS 5.10
    Memory size                     : 6144 Megabytes
    Swap space                      : 1154008k used, 8156008k available
    JAVA VERSION                    : "1.5.0_12"
    Sun Management Center Production Environment Installation.
    Following layers are installed  : SERVER, AGENT, CONSOLE
    Installation location           : /opt/SUNWsymon
    Sun Management Center Add-Ons and Versions:
    PRODUCT                                         VERSION
    Production Environment                          4.0
    Advanced System Monitoring                      4.0_Build15
    Service Availability Manager                    4.0_Build15
    Sun Fire Entry-Level Midrange S                 3.5-v6
    Netra                                           3.6
    Performance Reporting Manager                   4.0_Build15
    Solaris Container Manager                       4.0_Build15
    Sun Fire Midrange Systems Domai                 3.5-v6
    Dynamic Reconfiguration for Sun                 3.5-v6
    Sun Fire Midrange Systems Platf                 3.5-v6
    System Reliability Manager                      4.0_Build15
    Workgroup Server                                3.6
    Generic X86/X64 Config Reader                   4.0_Build15
    Sun Management Center Patch installation details:
    No Sun Management Center patch is installed.
    Sun Management Center disk-space consumption:
    PRODUCT                         APPROXIMATE DISK SPACE CONSUMED
    Production Environment          : 54452 kB
    Advanced System Monitoring      : 2391 kB
    Service Availability Manager    : 1838 kB
    Sun Fire Entry-Level Midrange S : 1738 kB
    Netra                           : 2005 kB
    Performance Reporting Manager   : 3371 kB
    Solaris Container Manager       : 3688 kB
    Sun Fire Midrange Systems Domai : 1718 kB
    Dynamic Reconfiguration for Sun : 303 kB
    Sun Fire Midrange Systems Platf : 3270 kB
    System Reliability Manager      : 970 kB
    Workgroup Server                : 3707 kB
    Generic X86/X64 Config Reader   : 608 kB
    TOTAL                           : 80059 kB
    Database is located at          : /var/opt/SUNWsymon/db/data/SunMC
    Free space available on this partition is : 2447579 kB
    Following locales are installed :
    Information about upgrade from old versions is not available.
    Sun Management Center Ports:
    SUNMC COMPONENT                  PORT_ID
    agent service                    4800
    trap service                     162
    event service                    163
    topology service                 164
    cfgserver service                165
    cstservice service               167
    metadata service                 168
    platform service                 166
    grouping service                 5600
    rmi service                      2099
    webserver_HTTP service           6789
    webserver_HTTPS service          8443
    Sun Management Center Server Hosts definitions in domain-config.x:
    SUNMC COMPONENT                  SERVER_HOST
    agent service                    jumpstart
    trap service                     jumpstart
    event service                    jumpstart
    topology service                 jumpstart
    cfgserver service                jumpstart
    cstservice service               jumpstart
    metadata service                 jumpstart
    platform service                 jumpstart
    Sun Management Center Processes:
    SUNMC SERVICE                    STATUS
    Java Server                      Running.
    Database services                Running.
    Grouping service                 Running.
    Event-handler service            Running.
    Topology service                 Running.
    Trap-handler service             Running.
    Configuration service            Running.
    CST service                      Not Running.
    Metadata Services                Running.
    Hardware service                 Not Running.
    Web server                       Running.
    Sun Management Center Agent      Running.
    Platform Agent                   Not Running.
    Privilege level for Sun Management Center users :
    CATEGORY                         USERS
    esadm                           : smcadmin
    esdomadm                        : smcadmin
    esops                           : None
    ALL USERS                       : smcadmin
    server is local host
    Web server package is installed correctly.
    Web Server is up and responding.
    Web Server servlet engine is up and responding.
    Validation tool Log file is : /tmp/validation_jumpstart.080613084452.17073What is going on here?
    Any help is really appreciated.
    -- Nick

    @sachint
    I tried your suggestion, but I still have the same situation. Unfortunately.
    I see -
    # svcs -vx
    # svcs -a|grep web
    root@jumpstart:/ # svcs -a|grep web
    disabled       Jun_13   svc:/application/management/webmin:default
    disabled       18:39:06 svc:/system/webconsole:console
    online         18:40:02 svc:/application/management/sunmcwebserver:default
    # cat /var/svc/log/application-management-sunmcwebserver:default.log
    [ Aug  6 18:39:51 Enabled. ]
    [ Aug  6 18:39:51 Executing start method ("/lib/svc/method/es-svc.sh start webserver") ]
    Web server started successfully.
    [ Aug  6 18:40:02 Method "start" exited with status 0 ]
    # svcs -p application/management/sunmcwebserver
    STATE          STIME    FMRI
    online         18:40:02 svc:/application/management/sunmcwebserver:default
                   18:39:53    27621 java
    # telnet localhost 6789
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.If I truss the java process, I see something like -
    # truss -edalf -rall -vall -wall -o /tmp/jumpstart.out -p 27621
    # less /tmp/jumpstart.out
    27621/28:        9.9421 write(7, 0xB02FCEA0, 498)                       = 498
    27621/28:          2 0 0 8 - 0 8 - 0 6   1 8 : 5 3 : 3 1   H t t p P r o c e s s o
    27621/28:          r [ 6 7 8 9 ] [ 3 ]   p r o c e s s . p a r s e\n j a v a . i o
    27621/28:          . I O E x c e p t i o n :   C o u l d n ' t   r e a d   l i n e
    27621/28:         \n\t a t   o r g . a p a c h e . c a t a l i n a . c o n n e c t
    27621/28:          o r . h t t p . S o c k e t I n p u t S t r e a m . r e a d R e
    27621/28:          q u e s t L i n e ( S o c k e t I n p u t S t r e a m . j a v a
    27621/28:          : 2 3 5 )\n\t a t   o r g . a p a c h e . c a t a l i n a . c o
    27621/28:          n n e c t o r . h t t p . H t t p P r o c e s s o r . p a r s e
    27621/28:          R e q u e s t ( H t t p P r o c e s s o r . j a v a : 7 1 0 )\n
    27621/28:         \t a t   o r g . a p a c h e . c a t a l i n a . c o n n e c t o
    27621/28:          r . h t t p . H t t p P r o c e s s o r . p r o c e s s ( H t t
    27621/28:          p P r o c e s s o r . j a v a : 9 7 4 )\n\t a t   o r g . a p a
    27621/28:          c h e . c a t a l i n a . c o n n e c t o r . h t t p . H t t p
    27621/28:          P r o c e s s o r . r u n ( H t t p P r o c e s s o r . j a v a
    27621/28:          : 1 1 2 5 )\n\t a t   j a v a . l a n g . T h r e a d . r u n (
    27621/28:          T h r e a d . j a v a : 5 9 5 )\n\n
    27621/28:        9.9445 send(18, 0xB02FE768, 159, 0)                    = 159
    27621/28:          H T T P / 1 . 1   4 0 0   B a d   R e q u e s t\r\n C o n t e n
    27621/28:          t - T y p e :   t e x t / h t m l\r\n C o n n e c t i o n :   c
    27621/28:          l o s e\r\n D a t e :   W e d ,   0 6   A u g   2 0 0 8   1 6 :
    27621/28:          5 3 : 3 1   G M T\r\n S e r v e r :   A p a c h e   T o m c a t
    27621/28:          / 4 . 0 . 5   ( H T T P / 1 . 1   C o n n e c t o r )\r\n\r\n
    27621/28:        9.9448 ioctl(18, FIONREAD, 0xB02FF34C)  
    ...I have no idea what is happening here.
    -- Nick
    Edited by: der_niki on Aug 6, 2008 9:56 AM

  • Web Start use always the newest version instead version in jnlp

    Hello,
    I have the following problem:
    Problem is a JRE is installed on client but this jre shouldn't used. A jnlp file is started with a local copied jre and the javaws.exe. When the installed version is newer than copied jre then this jre is used to executed the jnlp. Is the installed jre is lower than copied jre than the copied version is used to execute.
    The jnlp file contains the version with udpate '1.6.0_11' which should used (this is the copied jre) but when a newer version is installed than the javaws try to download the version but not used the copied jre.
    I want that a copied jre is use to launch an application not the local installed version. A new JRE needs an approval from the producer of the application. For launching the jnlp a tool copied the jre to the client.
    Is there any solution for this?
    Regards,
    Christoph

    Christoph82 wrote:
    ..The jnlp file contains the version with udpate '1.6.0_11' which should used (this is the copied jre) but when a newer version is installed than the javaws try to download the version but not used the copied jre. As far as I understand from (my) document on JRE versioning that should work to specify the [micro-version|http://pscode.org/jws/version.html#micro].
    I suggest you validate the JNLP using JaNeLA. If it reports no errors, search the [bug database|http://bugs.sun.com/], and if you can find no similar bug, report one.

  • How to get access to the local file system when running with Web Start

    I'm trying to create a JavaFX app that reads and writes image files to the local file system. Unfortunately, when I run it using the JNLP file that NetBeans generates, I get access permission errors when I try to create an Image object from a .png file.
    Is there any way to make this work in Netbeans? I assume I need to sign the jar or something? I tried turning "Enable Web Start" on in the application settings, and "self-sign by generated key", but that made it so the app wouldn't launch at all using the JNLP file.

    Same as usual as with any other web start app : sign the app or modify the policies of the local JRE. Better sign the app with a temp certificate.
    As for the 2nd error (signed app does not launch), I have no idea as I haven't tried using JWS with FX 2.0 yet. Try to activate console and loggin in Java's control panel options (in W7, JWS logs are in c:\users\<userid>\appdata\LocalLow\Sun\Java\Deployment\log) and see if anything appear here.
    Anyway JWS errors are notoriously not easy to figure out and the whole technology in itself is temperamental. Find the tool named JaNeLA on the web it will help you analyze syntax error in your JNLP (though it is not aware of the new syntax introduced for FX 2.0 and may produce lots of errors on those) and head to the JWS forum (Java Web Start & JNLP Andrew Thompson who dwells over there is the author of JaNeLA).

  • I can't upgrade my iPhone 4 to iOS 5.1.1 from the iPhone using wifi!! the installation start but before finishing an error occurred and the installation stop! help

    I can't upgrade my iPhone 4 to iOS 5.1.1 from the iPhone using wifi!! the installation start but before finishing an error occurred and the installation stop! help

    I will try, and what happen is that after it is intall and start "Preparing upgrade" the installation stop and a message occure: An error occure download the iOS 5.1.1" thas all.
    But now it is too late because the iOS 6 is now availabel, is it recommendet to donwload iOS 6 on iPhone 4 or not?

  • Java Web Start and IE6 as the default browser on win2k

    Hi,
    I need to access web pages from my java web start app. These pages are on the save server and the same webapp context as the jsp page to launch the web start app, and are protected.
    I have tried with basic auth and servlet filter with cookie to control the access to the web server. When I need to access web server resource from web start app, I create the URL to the page I want to access, set the auth header or cookie and call the web start BasicService to open it in the default browser.
    With Netscape 4/7 or Firefox as the default browser, I have no problem to send the auth header or cookie from the web start app to the webserver for security checking and get access to the resource on the server.
    But it seems not woking when IE is set to be the default browser. I am always asked for userid/password if I use basic auth; or redirected to the login page if I use servlet filter and cookie.
    If anybody knows a solution for this IE dfficulity, could you please share it?
    harry

    How did you even get k9 on your iPad...it does not show up in my iTunes apps? So I
    Had to download it on my computer ...transfer it to my iPad... Now it's in my Dropbox
    On the iPad...but I can't figure out how to install it from here......I want a browser on my
    iPad that ihas parental controls...I see quite a few should be in the iTunes store..even
    Firefox....but not a one show up in my iTunes app store?????

  • Override the launch of Java Web Start

    How can we stop the auto launch of Java web start and prompt the user to enter the desired location to download the jars.
    And then launch the jars from that location.
    Is there any solution for this.
    Please help me in this regard
    Nandita

    The whole idea of WebStart is to relieve the user of the burden of downloading binaries themselves. The whole point is, they just click a link on a web page, some magic happens, and their app starts up.
    Your idea is a complete waste of time.

  • When I start the install, I choose "as current user" and then...nothing. The installation just stops.

    That's it. I can't even get past the starting phase of the installation. It just dies. Any ideas? I'm on windows 7

    Try this:
    *Download the full Firefox installer and save the file to the desktop<br>https://www.mozilla.org/en-US/firefox/all.html
    *Start the installation with a double-click on the desktop icon
    You normally install Firefox as a normal user and confirm the UAC pop-up alert to allow Firefox to update the registry and install the Mozilla Maintenance Service to make it possible to update in the background.

  • Customize the "update message" for Java Web Start

    For the default value (false) of silentInstallLicenseAcceptance in Java Web Start when an application's server side has changed, the user will be asked with a message box whether he/she wants to update his local application now or quit the application.
    I would like to know if I can manipulate the message that Java Web Start should ask the user. I also would like to know if I can change the button from Yes/No to Upgrade Now and Upgrade Later.
    Any API reference, idea, tutorial or sample code would be appreciated.

    I'm pretty sure that list is not accurate for the Java Web Start released in Update 4 recently. I have an app which attempts to specify heap and stack sizes using java-vm-args="-Xmx1024m -Xms1024m -Xss8m"; when I use the Java console to display memory usage, it shows that the heap is 81MB (which is the default). If I use initial-heap-size="1024m" max-heap-size="1024m" in the same JNLP file, the heap size is set properly.
    Unfortunately I don't think there's any way other than -Xss to set the stack size in a JNLP file, and I need to do that too.
    It's also possible that I screwed something up which caused this problem, but I reproduced it on both my Mac Pro and my Macbook Pro.

  • Java Web Start and Cookies

    Hello All,
    We have the following scenario
    1) A user logs in to our website. The session information for the logged in user is maintained in the cookie.
    2) The User clicks the jnlp link to invoke the applet.
    3) The Java Web Start gets activiated and it tries to dowload the JNLP file.
    4) The Web start is not able to download the file since it cannot send the required cookie to the webserver and the webserver is denying the access.
    Is it possible to pass the existing session information (The session information is stored in cookie) from the browser to the java web start, so that the java webstart will pass the cookies for each subsequent access.
    Thanks and Regards
    Jagadeesh

    I have the following:
    Web page has a link to a servlet which dynamically creates the JNLP file.
    The servlet that produces the jnlp requires basic user authentication.
    When the link is click the Logon dialog appears. User logs in and the jnlp gets dynamically written. When the JNLP file is done being created by the servlet, this cause WebStart to execute the newly created jnlp masterpiece. Since WebStart does not share sessions with the browser, webstart causes the Logon dialog to appear again Forcing the confused user to re-login. What is up with that?
    Does Sun have a solution for this? Is noone doing authentication using webstart. This has to be a definite problem. Sure we could tell the users to login twice, then they would simply stop using our application.

  • Java Web Start issue

    Hi,
    since we deploy JRE using Software distribution in Active Directory, the msi file provided with the Java installation is not well usable. Not sure, if it is still the case, that triggering the msi file a second time after successfull installation destroys the exisiting Java installation.
    So I have built my own msi file for internal deployment using Advanced Installer. Finally all seemed to work (had some intermediate issues with outdated keys in HKCU), but now a new corporate application arrived, which creates a Java Web Start shortcut on the desktop. This shortcut fails to start with the error "Can not find message file".
    Not very helpful. I found out, that the shortcut points to the javaws.exe in system32 folder (if I create the shortcut with the Cache Viewer, the same happens). And this javaws.exe file is also bringing up this message if double clicking. If I manually alter the shortcut to point to Program Files\Java\jre6\bin\javaws.exe, the application launches.
    So there must be something wrong in my package with the javaws.exe in the Windows system folder. But what? I compared already several registry keys with a non corporate machine, on which I installed from download, and here it functions well, but could not find any visible differences.
    Would be nice, if somebody could point me to either a way to fix the javaws.exe file in system32 (without using the downloaded Java installer, which cannot be deployed) or default created shortcuts to point to Program Files\Java instead of Windows\system32.
    Thanks and best greetings from Germany
    Olaf

    907297 wrote:
    Hi and thanks for the answer.
    That is my guess as well. As mentioned I already tried to compare the registry keys related to javaws on two machines and found no visible differences, which would explain, why this functions on one and not on the other. But maybe I simply did not stumble over the needed key.I wonder if there is a way to sniff out which registry keys a native application is referencing. That could also provide some clues into which keys need to be cleaned up to fix a broken JDK installation, which too many people are suffering from.

Maybe you are looking for

  • Seagate 1.5tb in a iMac G5 (no iSight)

    big problem when I try to replace the internal drive with a Seagate ST31550341AS Formated perfectly and working perfectly in a external enclosure. After putting it on the internal bay and reinstall a new 10.5 osx, the problems appears: - problem to w

  • Comodo email cert not signed for iOS

    I've installed many a email certificate from Comodo. But now I have issues. When I export from keychains the certificate (listed as [email protected] which has bot the cert and private key) then email it to my iPhone, when I open the .p12 attachment

  • File save dialog in scripts

    Hello, I use java script to create a document and I want to choose how and where it should be saved. var docName = File.saveDialog ('Save', 'Adobe InDesign publications:*.indd'); If I try to run this code in ExtendScript toolkit without choosing my c

  • Interface Builder and subclassing

    Is it possible for me to have the outlet in Interface Builder pointing to a superclass... then in the code using that interface to point to a subclass? So for example, suppose I'm setting up an interface in Interface Builder with a HumanView (let's s

  • BI Launchpad & XI vs Web Services SDK - BusinessObjects 4.x

    Hello, I am new to using the .NET SDK and have noticed that there are two different versions that do similar things. I am looking to add functionality into my company's .NET-based website where we can add BO users on the fly into preset groups. I not