Cache jar not overwritten by new jar

I am new to the use of jar files, we have been using cab files for years, but now that Microsoft does not support the JVM we need to switch to the Sun JVM and jar files.
I have been doing a lot of reading and my jar file is caching, but when I create a new jar file instead of overwritting the one already cached, it puts the new one in cache also.
I am using these parameters in my .asp file
"cache_archive"           
"cache_version"      
Is there something more I need to do to have the old jar file overwritten?
Thanks much to anyone who can help!

The Sun Java Plug-in is caching the .jar file. If you look at the Plug-in control panel there is a "Cache" tab. It shows the location where "sticky" .jar files will be cached.

Similar Messages

  • Classes not loaded from cached JAR ???

    I am running an applet package in jar files using the 1.4.1 plug-in.
    The plug-in is set to cache the JAR file(s) downloaded from the web site, and output in the plug-in console indicates that these JARs are downloaded an cached successfully. I noticed that there is a lot of network traffic as the user is interacting with the applet. After I turned plug-in tracing on, I noticed that the plug-in is accessing the server (where the jar files are downloaded from) every time it needs to load a class or resource!
    The java console contains trace outputs of the form:
    Connecting http:[myserver]/someclass.class with no proxy
    Connecting http:[myserver]/someclass.class with cookie "JSESSIONID=..."
    The applet sometimes freezes until a given class can be accessed over the network!
    Does anyone have any idea why the applet keeps going back to the server for classes and resources through they are contained in the downloaded and cached JAR file?

    I do have the archive tag, but not the cache_archived. In fact the html page contains the following:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "100%" HEIGHT = "100%" ID = "myApplet"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = "CODE" VALUE = "appletclass.class" >
    <PARAM NAME = "ARCHIVE" VALUE = "myjar.jar"
    <PARAM NAME = "MAYSCRIPT" VALUE = "true" >
    <PARAM NAME = "type" VALUE="application/x-java-applet;version=1.3.1">
    <PARAM NAME = "scriptable" VALUE="true">
    </OBJECT>
    As far as I can tell the jar file is downloaded only once. It's when the classes (in the jar) are accessed that the applet goes back to the servlet!

  • Caching Jar in 1.4-rc Plugin

    I'm trying to set up a situation where a user can use the work-offline functionality of i.e. to access a web-page when they are not connected to the network.
    I have an applet on my page which uses the Plugin 1.4 version, and am having problems with the caching of the jar.
    It appears that the plugin is trying to access the web-server each time a new browser session is started; instead of using the cached version, and as there is no network connection it is failing.
    I am usign the following code :-
    <OBJECT ID="ofApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="200" height="200" align="baseline"
    codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn">
    <PARAM NAME="code" VALUE="uk.co.marketforce.field.OfflineApplet.class">
    <PARAM NAME="codebase" VALUE="../">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_archive" VALUE="mffield.jar">
    <PARAM NAME="cache_version" VALUE="0.0.0.1">
    <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
    <PARAM NAME="scriptable" VALUE="true">
    <PARAM NAME="PATH" VALUE="field\\expenses">
    No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
    </OBJECT>
    Am I doing anything wrong, or is this how the plugin should work?
    Cheers,
    Chris

    When you start run the applet you can see what the plugin is trying to do by opening the java console and enableing tracing.... turn it all the way up by pressing 5. This should tell you why the plugin is trying to access the network... if it is looking for a BeanInfo class, try providing one in the jar, or if it is trying to access some other resource, make sure it is available in the cached jar.

  • Who knows where does IE6 cache jar files?

    who knows where does IE6 cache jar files?
    I don't know why IE6 can't show my new version applet in jar file.I have try to delete all the temporary file by use tools->options->delete temporary files.but it does't work.who can tell me what should i do? thank you,

    Well in that case...I would hope it was cached in the browser...did you look at objects in the cache in (Tools, Internet Options....) in IE?

  • When I open iWeb it does not "Highlight" the New site or new page options. It ahs had this issue for over a year! I have tried uninstalling and re-installing it. What do I do? It opens the tutorial video, then when you close it, nothing else is clickable.

    When I open iWeb it does not "Highlight" the New site or new page options. It has had this issue for over a year! I have tried uninstalling and re-installing it. What do I do? It opens the tutorial video, then when you close it, nothing else is clickable.

    Open iPhoto, select a couple of photos and use the Share ➙ iWeb ➙ Photo page menu option.  That has jump started iWeb for others.  I could take a couple of tries.
    If that doesn't work try the following:
    1 - delete the iWeb preference file, com.apple.iiWeb.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iWeb folder. 
    Click to view full size
    3 - launch iWeb and try again.
    OT

  • Outlook 2010 shared mailbox in cache mode not updating Inbox automatically

    I have a user who has XP on his desktop, running Outlook 2010, connecting to a Exchange 2010 w/SP2.  I recently added a shared mailbox for him to monitor. I did it the old way by adding additional mailbox to his client (outlook 2010) pc.. I understand
    now  that in 2010 SP1 or greater that you can simply do this from the exchange server by granting full access permissions.  Either way, the user sees the mailbox and gets email in the shared mailbox ONLY when he clicks on the inbox and
    clicks on Update Folder. For some reason it is not auto updating new email. His personal account works fine, meaning when a new email is received it comes in and you see new mail.  The account is in cache mode and I've looked at other shared
    mailboxs that are working fine and the settings look the same? I'm not sure why this shared mailbox is not updating? 
    William McConnell

    I can see this is an old thread but I have a relevant question.
    This workaround does indeed work but what else is possible to do? The cashed mode is more or less necessary when working with large shared mailboxes.
    Niklas

  • How to tell if loaded file came from cache or not?

    Trying to work out how I can tell if a downloaded file came from the cache or was freshly downloaded over the net. I need this because users will download multiple files and I am trying to give make an accurate downloader for them. I have made them download a sample file which I have made not to cache by doing the following:
    private var _loader:URLLoader;
    private var _rootPath:String; = "http:/example.com/speedTest/f4v/";
    private var _startDownloadTime:int;
    private var _targetSpeed:Number //set elsewhere
    private function loadTestSpeedFile():void
                var fileRequest:URLRequest = new URLRequest();
                fileRequest.url = _fullFilePath + "speedTest.f4v";
                var variables:URLVariables = new URLVariables(); 
                variables.nocache = new Date().getTime();
                fileRequest.data = variables;
                _startDownloadTime = flash.utils.getTimer();
                _loader.load(fileRequest);
    private function speedTestHandler(e:Event):void
                var endDownloadTime:int = flash.utils.getTimer();
                var timeElapsed:Number =   endDownloadTime - _startDownloadTime;
                timeElapsed = timeElapsed/1000;
                var bytesPerSec:Number = (SIZE_OF_TEST_FILE/timeElapsed);
                var currentSpeedFactor:Number = bytesPerSec/_targetSpeed;
                trace("Speed Test file downloaded in " + timeElapsed + " secs at " + bytesPerSec + " bytes a sec : speedFactor " + currentSpeedFactor);
                   //remove this handler and download as normal from a list of files
                _loader.removeEventListener(Event.COMPLETE, speedTestHandler);
                _loader.addEventListener(Event.COMPLETE, completeHandler);
              //download the rest of the files
                download();
    I could work out if the other files are downloading much more quickly (say 20X quicker) than the speedTest rate worked out here and then discount it from calculating the download speed and estimated time remaining.
    However, it would be much better if there was a way to access properties on the URLoader on the Event.COMPLETE handler to see if the file 'downloaded' was taken from the cache or not. Anyone know of way of doing it more elegantly than the hack described in the last sentence?

    Kglad,
    Thanks for the interest and reply. Yes, you are right the file load preventing the file being cached is stictly a different matter from that which is bugging me.  I am, however,  using the Progress Event (as in flash.events.ProgressEvent ) in the following event handler listening to it:
    private function progressHandler(e:ProgressEvent):void
                var percent:Number = (e.bytesLoaded/e.bytesTotal)*100;
                  //other code to resize the gui loader ie scaling it to the percentage.
    Again this just tells me how much has been loaded each time the event is fired. On the Event.COMPLETE handler I am getting the load timings pretty much as per the
    speedTestHandler(e:Event) I posted. The only difference there is that it loads from an array of filenames (most but not all of which can change on later replays - hence some will be cached and some not) What i need to know is where the file is loaded from - either from the server or the local systems cache. The only way round this is to discard very quick downloads (which must be from the cache) from true calculating download speeds but that is a bit hit and miss. I am asking for a better solution. Hope that makes sense...

  • A problem using serialization and/or not overwritten variables

    I have a problem while writing objects in ObjectOutputStream :
    Here is a simplified version of the program :
    class InDData implements serializable
         private Vector shapeVector = new Vector ();
         public InDData (Vector shapeV)
              this.shapeVector = shapeV;
         public int getShapeVectorSize ()
              return (this.shapeVector.size());
    class InDShape implements serializable
         private Vector points = new Vector();
    // client side
    ObjectOutputStream p = new ObjectOutputStream(new BufferedOutputStream (connection.getOutputStream()));
    InDData objectData = (InDData) vectorObjectsToBeSentThroughNetwork.remove(0);
    System.out.println(objectData.getShapeVectorSize(); //print 1
    p.writeObject(objectData);
    p.flush();
    //server side
    ObjectInputStream in = new ObjectInputStream(new BufferedInputStream (connection.getInputStream()));
    Object oTemp = in.readObject();
    if (oTemp instanceof InDData)
         InDData objectData2 = (InDData) oTemp;
         System.out.println(objectData2.getShapeVectorSize(); //print 2
    Some explanations before the main dish :)
    I am writing a client that allows you to draw a figure and send it to the network. The drawing is composed of shapes and each shape (class InDShape) is composed of points. For the drawing to be sent to the network, i add the shapeVector (== drawing) to the class named InDData (this class allows me to add some more information about the client and the object sent, not shown here) and then i write the object InDData created in the ObjectOutputStream.
    Before writing InDData to the ObjectOutputStream, i test to see if it has a good shapeVector by drawing the shapeVector at the screen. This always shows the same copy as the last drawn panel.
    We suppose that the drawing is sent to the network after each drawn shape
    (mousePressed -> mousseDragged -> mousseReleased)
    (<------------------------------- shape ------------------------------->)
    now the problem ;)
    When i start drawing, the first shape is sent through the network without any problem.
    As soon as i add a second shape to the drawing (shapeVector.size() == 2) things get weird.
    The drawing sent to the network is made only of the first shape, nothing more.
         output of program after the 2nd shape was drawn
         client print 1 : size is 2
         server print 2 : size is 1
    Alright seems like the shapeVector is truncated...
    Now i tried something else to see if the it's only the Vector which is truncated or anything else.
    After adding a second shape to the drawing, i delete the first shape of it:
         reprenstation of the shapeVector:
         ([shape1])
         ([shape1][shape2]) // added the 2nd shape
         ([shape2]) // deleted the first shape
         ([shape2][shape3]) // added a third shape. Vector sent to the network via InDData
         output of program with the vector shown above
         client print 1 : size is 2
         server print 2 : size is 1
    Additionnaly you might expect me to say that first element of shapeVector inside both class InDData (client and server) are the same, but unfortunately they are not.
    The shapeVector received by the server via InDData is the same as when i drew the first shape :((
    Here is the problem (!) :(
    I think that i have a variable that is not overwritten somewhere but i don't know because:
    objectData is overwritten each time a message is sent to the server and has the correct values inside.
    objectData2 is overwritten each time a message is received from clients.
    Sorry for the huge post, but i believe that explanations are necessary ;)
    I am using the 1.4.2 jvm (not tested on others) with Xcode (apple powerbook g4 12").
    Thank you all :)

    Update :)
    In my way of making my program "simple" i forgot an important point in the client side :
    // client side
    ObjectOutputStream p = new ObjectOutputStream(new BufferedOutputStream (connection.getOutputStream()));
    while (connectionNotEnded)
         synchronized (waitingVector)
              try
                   waitingVector.wait();     // the only purpose of the Vector is to make the thread wait until it is interrupted to send InDData
              catch (InterruptedException ie)
                   System.out.println("Thread interrupted");
         InDData objectData = (InDData) vectorObjectsToBeSentThroughNetwork.remove(0);
         System.out.println(objectData.getShapeVectorSize(); //print 1
         p.writeObject(objectData);
         p.flush();
    I need it to explain the solution of my problem.
    when I am creating a client, a thread is created with the above code. It creates the ObjectOutputStream and then wait patiently until said to proceed (Thread.interrupted()).
    I do not close the ObjectOutputStream during the program running time.
    So whenever I am writing an object to the stream, the stream "sees" if the object was created before. I suppose that the ObjectOutputStream has a kind of memory for past written objects.
    So when i send the first InDData, the ObjectOutputStream's memory is "empty", thus the correct sending (and serialization) of InDData.
    But whenever I try to write another object of the same type InDData containing approximately the same data (shapeVector), the ObjectOutputStream calls its "memory" and tries to find it in the past written objects. And finds it in my case ! That's why whatever i put in the shapeVector, it ends by being the first shapeVector sent through the network. (I assume that the recall memory process lacks of "precision" in identifying the memory's object or that the process to give a unique serial to the written object in the ObjectOutputStream "memory" is limited).
    I tried the different ObjectOutputStream writing methods :
    instead of p.writeObject(objectData) i put p.writeUnshared(objectData).
    But as it is said in the docs : " While writing an object via writeUnshared does not in itself guarantee a unique reference to the object when it is deserialized, it allows a single object to be defined multiple times in a stream, so that multiple calls to readUnshared by the receiver will not conflict. Note that the rules described above only apply to the base-level object written with writeUnshared, and not to any transitively referenced sub-objects in the object graph to be serialized."
    And that is exactly my case !
    So i had to take it to the next level :)
    instead of trying to make each written object unique, i simply reset the stream each time it is flushed. That allows me to keep the stream opened and as fresh as new ;) I think the cost of resetting the stream is higher than writeUnshared but lower than closing and creating a new stream each time otherwise it would not have been implemented ;)
    Here is the final code for the client side, the server side remains unchanged :
    // client side
    ObjectOutputStream p = new ObjectOutputStream(new BufferedOutputStream (connection.getOutputStream()));
    while (connectionNotEnded)
         synchronized (waitingVector)
              try
                   waitingVector.wait();     // the only purpose of the Vector is to make the thread wait until it is interrupted to send InDData
              catch (InterruptedException ie)
                   System.out.println("Thread interrupted");
         InDData objectData = (InDData) vectorObjectsToBeSentThroughNetwork.remove(0);
         System.out.println(objectData.getShapeVectorSize(); //print 1
         p.writeObject(objectData);
         p.flush();
         p.reset();
    And that solves my problem :)

  • Calendar cache could not be moved because...permission

    after updates associated is iOS5 and icloud iCal won't open.  i get the message: Calendar cache could not be moved because you do not have permission to access calendars.  I checkd permission and my users wasn't there.  i added it, and no help.  I also repaired permissions from disk utility.  I quick search looks like this has been a common problem with most every new verion of 10.x..but the fixes are slightly different.  anyone have a fix for lion? 

    Dave,
    Welcome to Apple Discussions.
    Have you ever tried to change the "Sharing & Permissions" setting of any files/folders on your Mac?
    Where the heck do I find this mythical "Calendars" item?
    Open your Macintosh HD/Users/yourusername/Library/Calendars Folder. Using "Get Info," what is the Sharing & Permissions setting for the Calendar Cache file in that folder?
    What is the Sharing & Permissions setting for the Calendars Folder.
    I've already tried re-installing iCal with my Snow Leopard install disc and it did no good.
    Since you have reinstalled iCal you should also download and reinstall the Mac OS X v10.6.3 v1.1 Update (Combo)

  • HT5343 Resetting the DNS cache does not seem to work on OS X 10.8, what does really work?

    Resetting the DNS cache does not seem to work on OS X 10.8, what does really work?
    Desired activity: access a site that used to not have a SSL connection through the new https:// root domain. I can accomplish the task over a machine running Windows 7 or XP but flushing the dns of my mac does not affect the outcome — I am still redirected to the hosting provider's website whenever I tried to access the domain with a https:// prefix rather than http://
    I tried sudo killall -HUP mDNSResponder and it's older alternative but no luck.

    In the terminal:
    dscacheutil -flushcache
    and to get a very detailed report on the state of your DNS cache in /var/logs/system.log:
    sudo killall -INFO mDNSResponder

  • IPhone (4) Voice Memos not Syncing to New iTunes 10.0

    I'm currently on an iPhone 4 (4.0.1 firmware) and I've been experiencing issues getting my voice memos to sync to my iTunes library.
    The last time this worked was August 27, 2010 which added 3 voice memos to my iTunes library successfully. Since then, I have not yet updated my firmware but have installed the new iTunes 10.0. I have 8 new voice memo recordings on my phone since the last successful sync, and I've tried syncing my phone four times today, Sept. 4, (restarting iTunes and my iPhone) with no luck. I tried recording a new voice memo to see if iTunes 10 would recognize any memos recorded after the installation but that failed as well.
    Is anyone else experiencing this problem?

    I've always had the "Include Voice Memos" option selected. I think that only pertains to syncing voice memos from iTunes to the iPhone after it has been copied to iTunes. It has to be the new OS/iTunes not communicating that new memos have been recorded. For some reason they won't sync when I want them to, and then a few syncs later they magically appear.
    By the way, I'm VERY comfortable with the iTunes and iPhone systems. I've been using iTunes for 5 years, and I've been recording class lectures with the iPhone voice memo app (and another app) for a couple years. It's not an error of not seeing that the memos were added; they don't exist in my library or music folders.
    JUST OUT OF CURIOSITY, POST WHICH FIRMWARE YOU ARE RUNNING EXACTLY!!!
    I'm on an iPhone 4, running firmware 4.0.1

  • Can not see the new appending fields in RSA6

    Hi,
    I add one appending structure to existing datasource, after that I can not see the new field in RSA6, RSO2. However I can see it from RSA2 and SE11 (for extract structure).
    Any idea?
    Thanks
    Victor

    Victor,
    can you tell me how u have done this. you have a DS in RSA6 created from RSO2. then you created a append structure right? then click on your DS on the RSA6 screen. click on change icon on the application tool bar or function key CTRL + SHIFT +F1, maintain the datasource.
    can you able to see the fields here or not (i'm asking for change mode)?
    Nagesh.

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

  • Good day, tell me what to do iphone 4s bought preowned raised to 7.2 firmware but it requires aktivatsyi apple id but I do not know it because they do not buy a new one. and contact the seller lost in what to do now tell me?

    Good day, tell me what to do iphone 4s bought preowned raised to 7.2 firmware but it requires aktivatsyi apple id but I do not know it because they do not buy a new one. and contact the seller lost in what to do now tell me?

    There is no way around the activation lock. You apparently decided to use the phone with someone else's ID set up for an iCloud (and find my iPhone) account before updating. Since Find My iPhone was active, updating to iOS 7 has automatically turned on the activation lock. If you do not have the Apple ID and password that were previously used, then the phone is now useless. You can't activate it without that informaion.
    Talk to whoever you bought the phone from if you can. If you can't, buy a new phone.

  • Flash player does not work with new ICS Android 4.0.4 OS. Has this problem been addressed?

    Flash player does not work with new ICS Android 4.0.4 OS. Has this problem been addressed? I am using Firefox Beta for android and I also tried just Firefox.

    Please check the Play Store app for any Flash updates and install them if present.

Maybe you are looking for