Should web start uninstall the cache?

Recently I've sent to Sun the following RFE:
under windows 2000, when I uninstall Java Web Start, the cache of installed apps is deleted. I think that the uninstaller shouldn't do this, so in case I install Web Start again, I don't have to download again all the apps. In alternative the uninstaller should ask the user if he wants to delete the cache or not.
This is the response I've got from Nathanael Thompson:
Thank you for using our bug submit page. I think there is merit to the change suggestion you are proposing. I would suggest that you first post this to a newsgroup and request comment from other developers. Based on the responses, you can consider pursuing this in a subsequent Request For Enhancement perhaps with further elaboration.
So I'm doing what Sun asked me to do, I post here to get some comments from other developers. Do you think it's a good idea ?

In general I think the cache is something valuable, because it took user time and network resource to build.
Migration
If the cache is kept between installs, then the installation might get more complicated in case the cache algorithms and data formats change betweens web start versions.
Thus some kind of migration would be needed then for the cache contents.
A general integrity check would be nice too.
Security
I don't know if the security checkings are done during initial download, or at every cache access?
Would it be possible to circumvent security, by
putting something in the cache area?
Right now some stuff is unpacked, like native libs.
Regards,
Marc

Similar Messages

  • Of clans but due to shortage of space i want to delete it for some days.If i delete the app and then reinstall it after a month should i start from the beginning or cont. from where i left

    i use ipad mini with retina display 16gb i love playing clash of clans but due to shortage of space i want to delete it for some days.If i delete the app and then reinstall it after a month should i start from the beginning or cont. from where i left

    However, I originally had the kindle app on there and when he is reinstalling it comes up with my kindle account. How do we change this?
    OPen teh Kindle app.
    Tap the i at bottom right then Settings > Deregister this device.
    -> http://www.amazon.com/gp/help/customer/display.html?nodeId=200375710&#managedevi ces
    He does not have an actual kindle so I am not sure if he would be able to create one anyways.
    The Kindle app is so you do not have to use a Kindle. Yes, he can have a Kindle account and not own an actual Kindle hardware device.

  • Can we change the label of Java Web start at the time of downloading applic

    can we change the label of Java Web start at the time of downloading application?
    At the time of downloading application(jar files) java web start shows "Downloading Application" lable on it window , so can we change it so some other..

    The 'splash' screen might be of interest to you.
    Here is the quick description from the FAQ.
    <http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#206>
    Section 3.5 of the JNLP Spec. has more details on using a splash screen for an application.
    (But if you mean changing the very first screen seen when downloading an application the first time, the answer is 'no'.)
    Late addendum..
    By the way - now I review your question, I note you stress 'while jars are downloading'.
    There is another strategy you might take. Mark most of the application jar's as 'lazy' download, get the main GUI on-screen quickly, then use the JNLP API's DownloadService to fetch the rest of the jars, after the application is running.
    This has the advantage that, then we can have complete control of whatever is shown on the screen during the bulk of the downloads. We might show ..a 'splash screen', or a dialog with the application name on it, or a progress dialog, ..or any combination of the three.
    Edited by: AndrewThompson64 on Oct 22, 2007 3:01 PM

  • I don't want application show message "Java web start in the bottom of app"

    Dear
    please help me.
    I am using jdk 1.4.1_01 and JWS 1.2. when I launch application through web stat. In bottom of application , the title "Java web start" appears, it also appear in the bottom of popup menu, menu item bar, dialog,...
    Can I disappear it.
    Please help me.
    Thanks

    I don't think it's documented anywhere, but if you sign the jar, that message will go away.

  • Java Web Start and the Mac OS

    I am new to the Mac OS and to Java Web Start. Using Java Web Start to launch a Java application on the Mac is discussed in several of the posts here. However, in the requirement section of the Overview for Java Web Start says
    "Requirements
    Desktop/Client requirements:
    The client machine requires support for the Java Runtime Environment (JRE), version 1.3 or later. Java Web Start is available for Windows 98/NT/2000/ME/XP, the Solaris Operating Environment, and Linux."
    As you can see, Mac OS is not mentioned. Yet Java Web Start exists on my Mac. Am I looking at the wrong documentation? The document is located at
    http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/overview.html#jws
    I don't know how to use Java Web Start . I don't even know where to look for help. If anyone would care to offer some help it would be greatly appreciated.

    You are looking in the right place alright. The reason OSX is not mentioned in the document (or, by extend, any of the official sun documents) is that sun does not (may not?) provide an official java release on OSX. Java on OSX is implemented by Apple (and much to the dismay of both users and developers, they are not doing a very good job). Still, Apple's java usually fulfills the same specifications as the official sun java, so you can take any one of sun's documents on webstart or any other technology and it will usually work on the Mac. You just can't expect sun to assure that a technology will work on a platform they have no control over...

  • Need Help Uninstalling the Audig

    I have an Audigy 2 SB0240 sound card in the pc. I want to perform a fresh re-install of the original creative disc software & drivers?that came with the card. I need to know in exactly in what order in the Control Panel\ add\remove list should I start uninstalling the below that are installed at present:?#. Creative audio console? 0.90mb
    #2. Creative DVD Audio Plugin for Audigy Series? 0.0mb
    #3. Creative Jukebox Driver? 4.09mb
    #4. Creative Media Source 3.04mb
    #5. Creative NOMAD II Driver? 90.00mb?I do have the original Sound Blaster Audigy 2 installation and Applications CD. I also do have the program called Driver Cleaner Pro .5 that has a selection tab for removing I assume any creative remnants in the pc or registry after rebooting in safe mode like I do when uninstalling video card drivers. I read the Creative uninstall Faq guide and in the event I cannot remove all the above listed items thru the normal add\remove route the procedure for removing them manually from my pc would not work when you see step 2\line 8 under Uninstalling Sound Drivers. When I hit Start\Run\Browse on this pc nothing comes up for broswing but a screen saying not found. http://ask.americas.creative.com/SRV...ve.com,case=72?This is simply the first time I have had to uninstall the Creative software in order to perform a fresh re-install and I dont want to mess the system up. At present the Audigy device is not even loaded in the pc and is not shown in Device manager. Also does it have to be loaded in device manger in order to uninstall all the Creative associated software & drivers?Regards & Thanks for any replys?

    This is a user forum; we are not doing phone support.
    However, we can give you step-by-step instructions here at the forum, and we can make it as detailed as you wish.
    First we need to know
    what is your operating system?
    what is your browser?
    what Flash Player version do you want to install?

  • 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.

  • How to Execute a Web Template Without Using the Cache?

    Hi All,
    I am trying to execute a webt emplate to determine performance and optimisation. The trick is that the web template starts using the cache. Is there any way to turn off the cache for the web template? Maybe using a URL parameter or something?
    Thanks in advance for any assistance provided.

    Hi,
    You can do it thru RSRT, choosing HTML, the query and the template, then in the menu you have to check the box dont use cache, aggragates and BIA.
    Regards, Federico

  • Application started using Java Web Start doesn't launch the first time

    I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4.
    I signed my application and make use of all security settings.
    Here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="http://www.antaki.ca/bloom/jars"
         href="http://www.antaki.ca/bloom/Bloom.jnlp">
    <information>
        <title>Bloom</title>
        <vendor>Carl Antaki</vendor>
        <icon kind="splash" href="http://www.antaki.ca/bloom/Bloom.jpg"/>
        <icon href="http://www.antaki.ca/bloom/bloom32.jpg"/>
      <shortcut online="false">
      <desktop/>
      <menu submenu="Bloom"/>
      </shortcut>
    </information>
        <resources>
            <j2se version="1.5+" initial-heap-size="32m" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" />
            <property name="sun.java2d.d3d" value="false"/>
            <jar href="http://www.antaki.ca/bloom/jars/Bloom.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/BrowserLauncher2-1_3.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/SmartProgressMonitor.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/facebook.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/forms-1.1.0.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/json_simple.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swing-worker-1.1.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/glazedlists_java15.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swingx-0.9.1.jar"/>   
            <jar href="http://www.antaki.ca/bloom/jars/jhbasic.jar"/>
       </resources>
    <security>
         <all-permissions/>
      </security>
    <application-desc main-class="ca.antaki.www.bloom.gui.Bloom" />
    </jnlp>Here is the link for my application http://antaki.ca/bloom/Bloom.jnlp
    The first time the application is installed using a link on the browser it's downloaded then the certificate dialog is shown, after that I check the checkbox to accept the certificate permanently. The application doesn't load, it only loads the second time although I see it in the task manager. If I don't accept the certificate permanently it does load. This happens on both Firefox 2 and IE 7. I enabled the console and logging but nothing shows up there.That's really a weird problem, I wonder if Java Web Start is a viable deployment option, it does have great capabilities such as autoupdate but still seems to have important bugs.
    Does anyone have any clue about what is going on.
    The problem doesn't occur on Ubuntu 7.10.
    Thanks,
    Carl Antaki

    >
    You were right my XML file was not correct. I still couldn't find a valid JNLP validator. Sun has to provide that.>No they don't (have to supply a validator for their own document type, though it makes sense to do so), but yes they do (provide a tool that validates XML against schemas). Java can validate XML against a DTD or XSD.
    Check these two threads (and chase the links) for more details.
    JNLP xsd schema
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/c6f65bf1df5f105d/30c6b7e2dc342dc4>
    Validate XML against DTD? XSD OK. SSCCE.
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/5b997a1edb765b11/e831f3066eb4aa38>
    Look especially for the posts by Piotr Kobzda.
    I had a tool on my site based largely on Piotr's codes, that linked to a valid JNLP DTD and XSD, but unfortunately my site is offline at the moment. Andy assures me that the JNLP 6.0 DTD has been corrected for the developer ..download tutorials of web start, though the online (web site) version may still be invalid.

  • Keystore used by the web start

    Dear friends,
    the keystore used by web start is the same used by the IExplorer?
    i.e., if I import a certificate in te browser, it is also valid to my web start applications ?

    No, these are two seperate keystores.
    However, if using 1.5.0 or later on windows, you can see a checkbox in the Security section of the advanced tab
    "Use certificates and keys from the browser keystore"
    this (on by default) will allow you to import a certificate only into you browser, and not have to import it again using the control panel.
    (This may only work with IE, I'm not sure)
    /Andy

  • Unable to Launch Integration Builder: Java Web Start problem

    Hi,
    I am unable to launch the integration builder. I am using JDK 1.4.2_05. The java Web Start gives the following error:
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://<XIHostName>:50000/rep/repository/aii_util_rb.jar
    I have tried deleting the Java web start cache, and even reinstalling the JDK.
    Can someone suggest a workaround this problem ?
    thanks,
    Manish

    The Java Web Start cannot accept unsigned jars. If the jars are signed, it will ask in a dialog box if it should allow unrestricted access to this jar.
    In my case, I upgraded XI SP0 to SP4, which included updating the Adapter Core, Adapter Framework, and the XI TOOLS to SP4.
    On launching the Web start, it seemed that the jars were not getting signed. JWS cannot allow unsigned jars to the client.
    These jars are maintained in:
    \usr\sap\<SID>\SYS\global\xi\directory_server\javaws\directory
    I am having problems with my XI upgrade to SP4, and it is probably not signing the jars.
    Do you know why this may be happening ...
    thanks,
    Manish

  • Java Web Start didn't install with j2sdk-1_4_2_04-windows-i586-p.exe

    I just uninstalled all my java stuff from my XP Pro system
    then re-installed... j2sdk-1_4_2_04-windows-i586-p.exe
    With the SDK installation... j2re1.4.2_04 also installed... I think this is the Java Runtime
    But, before I had a folder for Java Web Start... not I don't...
    AND, the file... javaws-1_2-windows-i586-i.exe
    refered to on the Java Web Start Installation page isn't on my system anymore...
    (It was in an older vrsion of the Java Runtime... ( I had 2 java Runtimes at once installed, that is why I uninstalled... and even though I had Java Web Start, it wasn't working... so I deleted everything and reinstalled the j2sdk-1_2_04-windiws-i586-p.exe.)
    I would just download the java Web Start but the docs tell me it should be installed when the SDK and Runtime are installed... so I worry if I got the installation correct.
    Can anyone please advise me of how to get things working again.
    thanks for any help - Will

    I fixed this broblem just install both JDK and JRE.

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • JVM - Microsoft JScript.dll Memory Leak when using Java Web Start

    I have posted before a topic related to this matter, although now I have a lot more information about what is going on (although still no fix for it). This is the link to the earlier post, containing JVM HOTSPOT EXCEPTION_ACCESS_VIOLATION
    http://forum.java.sun.com/thread.jspa?threadID=5116970&messageID=9402346#9402346
    The issue is that after deploying on Windows XP a multi threaded, memory consuming (40 Mb) Java Swing application using Java Web Start, and the standard web page (IE6) reference to the jnlp file to launch the installation from Tomcat, each time this application gets executed by double clicking on the desktop icon (with no IE6 interaction at all), calls start being made between jvm.dll (sun) and jscript.dll (Microsoft IE), these interactions never release the memory they consume, so after a period of using the application it crashes unavoidably. If I execute exactly the same application launching it from command line (no Web Start nor IE6 browser involved), the application works nicely all the time, no problem at all.
    My question is: does anyone know why these calls to jscript.dll are even being made during web start application execution? As said, it's a desktop Swing app, it does not need the browser at all, and jscript.dll is a IE dll. Anyone can advice on how these interactions can be eliminated?
    I've worked with Microsoft support for two weeks on this issue and all they have said is that it is a Sun problem and they can not help further.
    Thanks
    Jes�s

    Microsoft suggested (among others) two test.
    1- Install IE7 and run the application
    2-Install Firefox and run the application
    Results were:
    For 1: The application does not crash, apparently IE7 has a newer version of Jscript.dll that, in Microsoft words, handles better 'bad software', refering to 'bad software' to the java virtual machine I guess. Looking at the performance manager you can see memory goes down as with IE6, but at some point memory is released and the app. does not crash. Anyway is still is uncertain to me why Jscript.dll is getting involved at all. Although this solves the problem is not a viable solution for us, because I work in a corporation where changes such as upgrading the IE version on a large number of desktop can not be justified just because one app. is crashing, and it would take a long validation time anyway before the upgrade can proceed.
    For 2: I did install Firefox in a machine and the application still crashed, but it is true I did not uninstall IE6, so the conflictive Jscript.dll was still sitting at system32. Quite possibly the crash would not happen if that dll wasn't there at all.
    Thanks
    Jes�s

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

Maybe you are looking for