Information on Java JAR cacheing

I'm just looking for an explanation of the jar caching procedure. I had a jar on a clients PC (behind a cahing proxy), and although I updated the jar on the web server, the browser kept on displaying the old jar, I had the client cache as well as proxy cache cleared, with no change. This was only occuring on the pc's behind the proxy.
The only solution was to create a new jar name, and update the HTML to look for the completely new jar name.
Any ideas on where the browser was loading the jar from, and how can it be cleared.
Thanks for the input

Once the JVM is started by a browser it is never stopped, until all browser windows are closed (and the browser process exits). The JVM is responsible for the loading and caching of jars. You need to clear the JVM's cache.
Typing 'x' in the Java2 plugin's console window will do this. I'm not sure how other JVMs work.

Similar Messages

  • Possible to check in Java, if if a package is already in the jar-Cache?

    I have an applet, that has only one main.jar in the Cache-Archive parameter.
    Because I wanted to reduce the preload-Time, since 1.4.0 I use an index.list file, listing
    the rest of jar-Files needed for my applet. So the jar-Files will be only
    downloaded to the time, they are needed, if they aren't already in the jar-cache.
    The Problem: If the applet needs a new jar-File, that isn't in the jar-Cache, it needs
    time to download the package. But the user doesn't see that something happens.
    Is it possible to check with JAVA in the applet, if a package is already in the jar-Cache?
    If i know this, I'll be able to show the user that the applet is currently downloading a package.

    do u mean a file in the JAR?
    if yes, yes u can check that.
    check this,
        public ImageIcon loadImage(String location)
    java.net.URL url =  null;
    url = getClass().getResource(location);
    if (url == null) then ...
        } 

  • 1.4.2_01 and 1.4.1_01 jar cache doesn't seem to be working

    I am having a hard time getting the .jar cache to work with the 1.4.2_01 and 1.4.1_01 plugins.
    Here is my applet:
    ====================================================================
    import java.applet.Applet;
    import java.awt.*;
    public class TestApplet extends Applet {
         public void init() {
    setLayout(new BorderLayout());
              setForeground(Color.blue);
              setBackground(Color.white);
         Label label = new Label();
    String resourcePath = "/" + this.getClass().getName().replace('.','/') + ".class";
    String source =this.getClass().getResource(resourcePath).toString();
    System.out.println(source);
    label.setText(source);
              add(label,BorderLayout.CENTER);
    ====================================================================
    You will need to compile this class and put it in a TestApplet.jar file in the same directory that the html file is in. Delete TestApplet.class just for good measure.
    And here is the html that loads it up:
    ====================================================================
    <HTML>
    <BODY>
    <APPLET CODE="TestApplet" NAME="TestApplet" WIDTH="750" HEIGHT="50" CODEBASE="." >
    <PARAM NAME="cache_archive" VALUE="TestApplet.jar">
    <PARAM NAME="cache_version" VALUE="1.1.1.2">
    <PARAM NAME="cache_option" VALUE="Plugin">
    </APPLET>
    </BODY>
    </HTML>
    ====================================================================
    Now, I hope that I'm missing something really stupid here, but when I run this with the 1.3 plugin, the applet clearly states that the class file is loaded from the cached .jar file. For example, it prints out that the class file was loaded from:
    jar:file:/C:/WINNT/Profiles/xxxx/java_plugin_AppletStore/1.3.1_09/jar/TestApplet.jar19890069901.1.1.22036068943678200358.jar!/TestApplet.class
    But when I run this code with the 1.4.2_01 or 1.4.1_01 plugin I get this:
    jar:http://localhost/TestApplet.jar!/TestApplet.class
    and my access log files show this file getting loaded over and over and over again. Using the cached_archive_ex param doesn't help either.
    This is a over simplified example of a problem that is forcing my huge applet to run at 1/3 to 1/4 the speed that it should because of class loader thrashing due to excessing jar file loading.
    Have I missed something obvious?
    Thanks
    Andy

    Hi,
    i don't know but i encountered the same caching problems when plugin version 1.4.2_01 is used.
    Facts:
    -> jar Size: 1MB
    -> Added Parameters:
    <PARAM NAME="cache_archive" VALUE="xxxx">
    <PARAM NAME="cache_version" VALUE="4.1.1.266">
    <PARAM NAME="cache_option" VALUE="Plugin">
    -> Cache is set to unlimited
    No matter if jar-File is already stored in the cache the parameter "Cache-Control: no-cache" is set in the HTTP-Header.
    I have not found anything preventing this yet.
    Cheers
    Thomas

  • Error unable to create jar cache in /tmp directory!

    I using tomcat4.0.2,but when I start the tomcat from %catalina_home%/bin using startup.bat, in the startup console printing "error unable to create jar cache in /tmp directory: java.io.IOException: System cant find the direct", and tomcat can be started, no problem when I access my web application.
    Why it happened?
    But if I start tomcat from startup menu of the system instead of using startup.bat, no error is thrown.

    anyone know it? Please tell me.
    I was puzzled about it.
    TIA

  • Cache distribution - Java object cache

    Hi.
    I'm trying to use Oracle Java Object Cache (cache.jar), the one included in the 9iAS 9.0.3.
    Everything works fine but the cache distribution between different JVM:s.
    Anyone got this to work?
    Regards
    Jesper
    package test;
    import oracle.ias.cache.*;
    * Singleton Cache class.
    public class Cache {
         /** The singleton instance of the object. */
         private static Cache instance = null;
         /** The root region. */
         private final static String APP_NAME = "Test";
         * Protected constructor - Use <code>getInstance()</code>.
         * @throws Exception if error
         protected Cache() throws Exception {
              CacheAccess.defineRegion(APP_NAME);
         * Gets the singleton instance.
         * @return The instance of the Cache object.
         public static Cache getInstance() throws Exception {
              if (instance==null) {
                   createInstance();
              return instance;
         * Creates the singleton instance in a thread-safe manner.
         synchronized private static void createInstance() throws Exception {
              if (instance==null) {
                   instance = new Cache();
         * Put an object on the cache.
         * @param name The object name
         * @param subRegion The sub region
         * @param object The object to cache
         * @throws Exception if error
         public static void put(String name, String subRegion, Object object) throws Exception {
              CacheAccess appAcc = null;
              CacheAccess subAcc = null;
              try {
                   appAcc = CacheAccess.getAccess(APP_NAME);
                   // Create a group
                   Attributes a = new Attributes();
                   a.setFlags(Attributes.DISTRIBUTE);
                   appAcc.defineSubRegion(subRegion, a);
                   subAcc = appAcc.getSubRegion(subRegion);
                   if (!subAcc.isPresent(name)) {
                        subAcc.put(name, a, object);
                   } else {
                        subAcc.replace(name, object);
              } catch (CacheException ex){
                   // handle exception
                   System.out.println(ex.toString());
              } finally {
                   if (subAcc != null) {
                        subAcc.close();
                   if (appAcc != null) {
                        appAcc.close();
         * Gets a cached object from the specified sub region
         * @param name The object name
         * @param subRegion The sub region
         * @return The cached object
         * @throws Exception if requested object not in cache
         public static Object get(String name, String subRegion) throws Exception {
              CacheAccess appAcc = null;
              CacheAccess subAcc = null;
              Object result = null;
              try {
                   appAcc = CacheAccess.getAccess(APP_NAME);
                   subAcc = appAcc.getSubRegion(subRegion);
                   // define an object and set its attributes
                   result = (Object)subAcc.get(name);
              } catch (CacheException ex){
                   // handle exception
                   throw new Exception("Object '" + name + "' not in cache region '" + subAcc.getRegionName() + "'.");
              } finally {
                   if (subAcc != null) {
                        subAcc.close();
                   if (appAcc != null) {
                        appAcc.close();
              return result;
         * Invalidates all objects in all regions
         public static void invalidateAll() throws Exception {
              CacheAccess appAcc = CacheAccess.getAccess(APP_NAME);
              appAcc.invalidate(); // invalidate all objects
              appAcc.close(); // close the CacheAccess access
         // Main method for testing purposes.
         public static void main(String[] args) throws Exception {
              try {
                   System.out.println(">> Caching object OBJ1 into region TEST1.");
                   Cache.getInstance().put("OBJ1", "TEST1", "Object cached in TEST1.");
                   System.out.println(">> Getting OBJ1 from cache region TEST1.");
                   System.out.println(Cache.getInstance().get("OBJ1", "TEST1"));
              } catch (Exception ex) {
                   System.out.println(ex.getMessage());
    Contents of JAVACACHE.PROPERTIES:
    # discoveryAddress is a list of cache servers and ports
    discoveryAddress = host1.myserver.com:12345,host2.myserver.com:12345
    logFileName = c:\javacache.log
    logSeverity = DEBUG
    distribute = true

    I have same problem
    Exist some reason?
    I'm testing Cache with isDistributed() method and I still got false!
    Thanx

  • Oracle Application Server 10g Java Object Cache

    Hi,
    I am new to Java and looking for a java caching framework and just came across Oracle Application Server 10g Java Object Cache. I am unable to find 11g version of the same. Is it not supported any more?
    Can I use this with weblogic server? Please suggest if any other alternatives.
    Thanks,
    Manoj

    Bump.
    I definitely don't see the same file: C:\dev\jdevstudio10134\javacache\lib\cache.jar in the Oracle JDEV tree. Is there a suggested alternative?

  • Java Applet: Caching data in User HDD?

    Hi,
    I'm trying to write a java applet which requires approximately 700K of mathematical data everytime it runs. One way to do this is to download those data off from server everytime the applet starts up, but it seems terribly inefficient for me cuz those data do not change at all.
    Is there anyway to work around such issue, for example, by storing the data into user's hdd? Or is it possible to pack the mathematical data together with .class files into a jar file and then somehow access them in user's side? (dunno how to do so and not sure if it's possible)
    Any help would be greatly appreciated. Thanks.
    Aaron

    Hi,
    I'm trying to write a java applet which requires
    approximately 700K of mathematical data everytime it
    runs. One way to do this is to download those data off
    from server everytime the applet starts up, but it
    seems terribly inefficient for me cuz those data do
    not change at all.
    Is there anyway to work around such issue, for
    example, by storing the data into user's hdd? Or is it
    possible to pack the mathematical data together with
    .class files into a jar file and then somehow access
    them in user's side? (dunno how to do so and not sure
    if it's possible)
    Any help would be greatly appreciated. Thanks.
    AaronYou have one answer above.
    Create a jar file, put your applet classes in it, and then put the data files in the jar with the application. Theres no restriction as to the types of file you can put in a jar, and Jars are essentially zip files, so no point in zipping the data first.
    As to storing stuff locally on the client, that's unadvisable, and disallowed due to the java security model anyhow. It is possible to override the security manager but, I'm not sure if this is possible with an applet though. It would undoubtedly not be hassle free.
    Another thing that could help is jar caching..
    http://java.sun.com/products/plugin/1.3/docs/appletcaching.html this would improve the start up time by caching the jar file on the client, between invocations.

  • Java Object Cache have wired behaviour

    HI,
    I am trying to get my Oracle Java Object Cache working but I am observing some really stange behaviour which has stop it working. So any help will be really useful (10.1.3 and 10.1.2.0.2). I will explain:
    Progammaticly I have setup a parent region call 'DatabaseDataCache' and a sub-region call 'country'. In this region I have defined my object call countriesDto' with a Attribuite that has a CaheLoader attached. In my cache loader I connects to a Entity EJB that loads a bunch of DTOs into the cache.
    What is strange is that when i run the unit test on the code (cactus). The cache seems to call the cache loader 3 times consequtively before the EJB will load the data (i know this due to debuging messages)
    Then in the actual implmentation I have the cache setup code of the in the init() of the servlet but again the cache loader doesn't seem to able to call the ejb it requires. Ones the cache is access it trys to call the cache loader and of course the ejb dosn't get called and is returning me a NullPointerError as I am trying to acces the local interface (in the cache loader). This is strange as in the cactus test it actually calls the ejb ok bit only on the third attemp.
    I am abit puzzled with this so any help will be much appreciated.
    Charlie

    I think I have got what you need. The following is the cactus test class that test the getCountries method in my session ejb:
    public class WebinUtilTest extends ServletTestCase {
    private CacheAccess globParCache;
    public void setUp() throws Exception {
    CacheAccess.defineRegion("DatabaseDataCache");
    globParCache = CacheAccess.getAccess("DatabaseDataCache");
    globParCache.defineSubRegion("country");
    Attributes cAtt = new Attributes();
    cAtt.setLoader(new CountryCacheLoader());
    CacheAccess globCountCache = globParCache.getSubRegion("country");
    globCountCache.defineObject("countriesDto", cAtt);
    globCountCache.preLoad("countriesDto");
    globCountCache.close();
    globParCache.close();
    public void testGetCountries() throws Exception{
    WebinUtilLocal wuLoc = HomeFactory.getWebinUtilLocalHome().create();
    String[] countries = wuLoc.getCountries();
    assertTrue(countries.length >0);
    public void tearDown() throws Exception {
    if (globParCache != null){
    CacheAccess gCache = CacheAccess.getAccess("DatabaseDataCache");
    gCache.destroy();
    When I run this test here is the stack trace I am getting (in order):
    06/01/05 15:54:14 load entred for country cache loader: Thu Jan 05 15:54:14 GMT 2006
    06/01/05 15:54:14 java.lang.Exception: Stack trace
    06/01/05 15:54:14 at java.lang.Thread.dumpStack(Thread.java:1064)
    06/01/05 15:54:14 at uk.ac.ebi.submission.util.CountryCacheLoader.load(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheLoader.callLoad(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheHandle.findObject(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheHandle.asyncLoad(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.Task.execute(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.WorkerThread.run(Unknown Source)
    06/01/05 15:54:14 WebinUtil Session Started: Thu Jan 05 15:54:14 GMT 2006
    06/01/05 15:54:14 load entred for country cache loader Thu Jan 05 15:54:14 GMT 2006
    06/01/05 15:54:14 java.lang.Exception: Stack trace
    06/01/05 15:54:14 at java.lang.Thread.dumpStack(Thread.java:1064)
    06/01/05 15:54:14 at uk.ac.ebi.submission.util.CountryCacheLoader.load(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheLoader.callLoad(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheHandle.findObject(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheHandle.locateObject(Unknown Source)
    06/01/05 15:54:14 at oracle.ias.cache.CacheAccess.get(Unknown Source)
    06/01/05 15:54:14 at uk.ac.ebi.submission.ejb.session.WebinUtilBean.getCountries(Unknown Source)
    06/01/05 15:54:14 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    06/01/05 15:54:14 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    06/01/05 15:54:14 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    06/01/05 15:54:14 at java.lang.reflect.Method.invoke(Method.java:324)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:39)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:45)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:62)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:32)
    06/01/05 15:54:14 at java.security.AccessController.doPrivileged(Native Method)
    06/01/05 15:54:14 at javax.security.auth.Subject.doAs(Subject.java:379)
    06/01/05 15:54:14 at com.evermind.server.ThreadState.runAs(ThreadState.java:637)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:36)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:56)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:46)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:62)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.system.RunningStateInterceptor.invoke(RunningStateInterceptor.java:28)
    06/01/05 15:54:14 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
    06/01/05 15:54:14 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:106)
    06/01/05 15:54:14 at WebinUtilLocal_StatelessSessionBeanWrapper50.getCountries(WebinUtilLocal_StatelessSessionBeanWrapper50.java: 310)
    06/01/05 15:54:14 at uk.ac.ebi.submission.cactus.session.WebinUtilTest.testGetCountries(Unknown Source)
    06/01/05 15:54:14 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    06/01/05 15:54:14 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    06/01/05 15:54:14 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    06/01/05 15:54:14 at java.lang.reflect.Method.invoke(Method.java:324)
    06/01/05 15:54:14 at junit.framework.TestCase.runTest(TestCase.java:154)
    06/01/05 15:54:14 at junit.framework.TestCase.runBare(TestCase.java:127)
    06/01/05 15:54:14 at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
    06/01/05 15:54:14 at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
    06/01/05 15:54:14 at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestControl ler.java:93)
    06/01/05 15:54:14 at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTest Controller.java:224)
    06/01/05 15:54:14 at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
    06/01/05 15:54:14 at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
    06/01/05 15:54:14 at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
    06/01/05 15:54:14 at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
    06/01/05 15:54:14 at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
    06/01/05 15:54:14 at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
    06/01/05 15:54:14 at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
    06/01/05 15:54:14 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    06/01/05 15:54:14 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    06/01/05 15:54:14 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    06/01/05 15:54:14 at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
    06/01/05 15:54:14 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
    06/01/05 15:54:14 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
    06/01/05 15:54:14 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:833)
    06/01/05 15:54:14 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:430)
    06/01/05 15:54:14 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    06/01/05 15:54:14 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
    06/01/05 15:54:14 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    06/01/05 15:54:14 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:215)
    06/01/05 15:54:14 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:232)
    06/01/05 15:54:14 at oracle.oc4j.network.ServerSocketAcceptHandler.access$1000(ServerSocketAcceptHandler.java:35)
    06/01/05 15:54:14 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:819)
    06/01/05 15:54:14 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    06/01/05 15:54:14 at java.lang.Thread.run(Thread.java:534)
    Hope this is enough information.
    Thanks
    Charlie

  • Turning off jar cache causes classnotfound with signed jar files

    Hi,
    I have a problem with applet signed jars when the java cache is turned off.
    With the cache turned off, I get a class not found for the first class it attempts to use from the signed jar file from an applet.
    If I turn the jar caching on, all works perfectly with no other changes.
    Anyone have any ideas? This is java 6u16.
    Thanks

    jkc532 wrote:
    .. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? From your comprehensive investigation and report, it seems so to me.
    ..I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?Just after read the summary I was tired, so I have some understanding of the effort you have already invested in this (the 'wits' you have already spent). I think you should raise a bug report and seek Oracle's response.

  • Java -jar works, javaw does not

    I have a client who is unable to launch a jar from the desktop with javaw but if I type in the command line java - jar thejar.jar it works fine.
    They originally had jars associated with PKzip. I changed the program association (its an XP machine by the way). But neither double clicking nor the javaw command work.
    Whats the deal?

    Ya !!!!, the only deal is that is that u have to specify the manifest information inside the Jar file....
    One way ,
    inside ur Jar file , u may find Manifest.mt
    make the following arrangement ,,
    Main-Class: name of the main class that runs the Application ...
    save it in a text file called man.mtpor with any extension...
    then under commannd prompt,
    use jar -ufm jarname.jar man.mpt
    the manifest info will be saved into the jar file ,,
    To confirm that , make that jar opened in Zip and see the Manifest file ,, the attrb values are updated...
    Hence the deal is finished !!!!!!

  • Define location for "Oracle Jar Cache" of jinitiator

    Hello,
    I'd like to know is it posible to define the location of Oracle Jar Cache with some parameters like installing in silent mode....
    This problems has occured because we have for users files home directory on network file server and jinitiator automaticlly put Oracle Jar Cache on file server.
    For Example i'd like to have C:\Oracle Jar Cache
    regards,
    Tilen
    Message was edited by:
    Ttreven

    If you change the location of the jar cache via the console the location entry is written into a file in your local profile:
    Directory
    .jinit (for JInitiator)
    .java (for Java Plug-In)
    File
    properties<version_of_JInitiator or Java Plug-In>.
    Only modified entries are written to this file (otherwise the default is valid).
    You can modify this file programmatically after installation or possibly during installation process.

  • Jinitiator Question - JAR Cache Size Location

    Using Jinitiator 1.3.1.22 - on Windows 2000 Pro
    Does anyone know where this setting is stored on the PC when set in the Java Console? I have looked at the properties121222 in the .jinit folder under the User profile in Docs and Settings and it isn't in there!

    Thanks Francois...I know that bit. I want to know where the value for the default is actually derived from for my installation. According to the Forms Services Deployment Guide 'The default cache size for Oracle JInitiator is 20000000. This is set for you when you install Oracle JInitiator.'
    If you override the default in the Jini Configuration Panel, it's value will appear in a text file in the users .jini folder. Where is it held before that?!
    When Jini is installed at my workplace, the default for the JAR cache is 50mb. No one knows why and how it differs from what the documentation states! This is what I am trying to get to the bottom of!

  • Difference between java -jar and click ?

    Hi everyone,
    What is the difference between :
    - doing : java -jar myAp.jar
    and
    - doing double click on on the file "myAp.jar"
    I thought I was the same thing, but it seems that it's not ...
    Thanks for your help

    Thanks a lot for this information ... but it makes me much more confused ;-) !
    myAp.jar is a graphical application. When I run it with doing "java -jar myAp.jar" or "javaw -jar myAp.jar" everything works fine.
    But I double-click on the file, the application stops everytime it there is a line of code specific to the Jre 1.4.
    For example, it stops at :
    JWindow window = new JWindow();
    window.setLocationRelativeTo(window.getParent());
    If I put these lines into coments... the application goes well and then stops at the line :
    String name = getJarName();
    name = name.replaceAll(".jar", "");
    which is specific to version 1.4 as well.
    What is confusing is that I have Jre 1.4.2_05 installed on the computer.
    C:\>java -version
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
    I asked the question in the forum "Java Archive (JAR) Files", I did not get answer and anyway I am not quite sure it's a jar issue ....
    Has anybody an idea about that ?
    thanks in advance

  • Using a java jar archive in PL SQL

    Hello, where I can find information about How can I use a java jar archive in PL SQL?
    Or How can I do it?
    Thanks in advance!

    Depends on your version. I recommend starting here: Oracle® Database Java Developer's Guide. This is the 11.2 version. If you are on a different version I recommend you read that instead. You can find it at http://tahiti.oracle.com

  • Where's  the jar cache in Discoverer 10.1.2?

    Hi friends.. I'm trying to tind where the jar cache directory .. but I can't locate it...
    Not in my Windows PC..(by the way.. I haven't a jcache directory in my Program Files/Oracle/Jinitiator 1.3.1.31 folder), I mean in apps Linux server...
    Any ideas?
    I suppose that when notes talk about clear/delete jar cache directory for Discoverer they don't mean the COMMON_TOP/... directory... but i don't know exactly.
    Thanks,
    Jose L.

    Jose,
    The jar cache will be in the individual PC and will depend upon if you are using the Jinitiator or Sun JVM.
    Discoverer 10g uses Sun JVM by default unless you have configured Jinitiator.
    Any easy way to check is: Navitagate to: Start >> Control Panel >> Java (for SunJVM) >> General tab >> settings button (under Temporary Internet files)
    It will be something like (for 1.5 plugin)
    C:\Documents and Settings\<username>\Application Data\Sun\Java\Deployment\cache
    Similar steps for Jinitiator, but it will be under the 'cache' tab
    C:\Documents and Settings\<username>\Oracle Jar Cache
    You can also search your PC for files to fine the location.
    disco5i.jarjar*
    If a note tells you to clear the jar cache, then it is on the client PC.
    I had an old MetaLink note 367389.1 bookmarked that has some navigation steps and screen shots for you.
    Regards,
    Steve.

Maybe you are looking for

  • Extreme base station 802.11g Mystery

    Been trying to wrap my head around this for the past week. Girlfriend unplugged our perfectly working Airport express from wall outlet by mistake. She plugs it back in but no connection is detected by our two ibook G4s (both running leopard). After t

  • Use of Update Table in Delta Extraction ....

    Hi all ,        I have a small doubt regarding why there is an update table introduced between statistical table and delta queue in delta extraction process ... why not directly extract data from the statastical table and put it in to the delta queue

  • How to handle exceptions in web dyn pro

    Hi Frndz....                  Can any one kindly xplain how to handle exceptions in web dyn pro..like we hav exceptionhandling in java ....so is there any for NWDS THANKS & REGARDS Rajesh

  • JDBC Connections not being returned to pool

    Greetings All. I really need some help here to find out where my connections are being held. I have a transactional connection pool that runs out of connections on average three times a day. I've read all the threads in the newsgroups for connection

  • Why is Firefox for Android and Nook HD+ such garbage?

    it's very annoying, u can't save pages, the menu system sucks, the top is stupidly designed to hide after a few seconds, the tab system is stupidly hidden and confusing and hard to use! make it the way it is in windows, not this simpleton trendy crap