JNLP file version based update like Jar files version?

Dear All,
We are using the JWS from the past one year. Its working fine except one or two issues.
Here i am explaining one of those issues:
When user double clicks the icon on his desktop, first the JWS checks for updates. If updates found it will download the updates and starts the application.
JWS doing the updates checking as:
First its checking the time stamps of the client and server JNLP files. If server JNLP file time stamp is grater than client JNLP file time stamp, then its checks for each and every jar file update.
For Jar files update we are using the version based. Our JNLP file is as shown below:
<jnlp spec="1.0" codebase="$$codebase" href="LaunchMedplexus.jnlp">
<information>
<title>CBST</title>
<vendor>CBST</vendor>
<description kind="short">CBST</description>
<icon href="../../../../images/image1.gif" kind="splash"/>
<icon href="../../../../images/image1.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4" initial-heap-size="48m" max-heap-size="256m"/>
<jar href="../../../../JARS/AppJars/POMS/admin/admin.jar"      version="7.7.0.0" />
<jar href="../../../../JARS/AppJars/POMS/billing/bil_adj.jar"      version="7.7.0.0" />
</resources>
<application-desc main-class="com.test.security.Login">      
</application-desc>
</jnlp>
we are facing the problems because JWS updates checking is based on the JNLP file time stamp.
is there is any way in JWS to check the updates based on JNLP file version instead of timestamp (like jars version based)?
Our Environment is :
JRE : 1.4.2_10
OS : Windows 2000/XP
thanks in adavance
Krishna Mohan.

Dear Andy,
Thank You for your reply.
perhaps you can use a simple jnlp file that referre to almost all of the application using a versioned jnlp component extension.can you explain this line little more elaborately.
thanks in advance
km

Similar Messages

  • Problem in updating a jar file

    Hi ...
    Anyone help me for updating a jar file in windows.
    I am updating a jar file Using Runtime.exec() method.. But it shows an error like this:
    java.io.IOException: Error in writing existing jar file
    at sun.tools.jar.Main.run(Main.java:198)
    at sun.tools.jar.Main.main(Main.java:1022)
    I am using jdk1.6 and ant tool for build.

    Stick to your old thread please.
    [http://forums.sun.com/thread.jspa?threadID=5320704&messageID=10371347#10371347]
    I'll delete this one soon.

  • Error while updating a jar file

    I am trying to update a jar file using teh following command
    jar -uf project.jar fileMy.prop
    however while doing that i get the following error
    java.io.IOException: Error in writing existing jar file
    at sun.tools.jar.Main.run(Main.java:179)
    at sun.tools.jar.Main.main(Main.java:904)

    Perhaps some process (your java program perhaps) is still running that has the file open still? You'll need to shut down the process(es) that have it open. Or you don't have proper rights to the directory/file. Not a java issue.

  • How do I update a file in an Applet's JAR file from the Applet code

    Here's my problem.
    My applet is using a serializable history data in which I am storing in the applet's JAR file. When I run the applet, I read the file with "getResourceAsStream()" and run my program with that hist data. When my applet is closed, I need to update this file from my Applet's code and I dumfounded about how to do that.
    Is there any way to update a file in the Applet's JAR file through the Java Applet code? (i.e. OutputStream?).
    Would appreciate any advice people have.

    Just place a copy of the file on the local hard disk and update that. When you start the Applet you try to read from the hard disk. If the file exists then no problem otherwise copy it from the jar to the hard disk.

  • Updating a jar file

    I am using the following ant file in eclipse to build jar files when I ask the project to be built
    <project name="atg" default="create-jar">
        <target name="create-jar">
            <jar jarfile="${jarlocation}/classesDAS.jar">
                <fileset dir="WebContent/WEB-INF/classes" includes="**/*.class"/>
                <fileset dir="WebContent/WEB-INF/classes" includes="**/*.properties"/>
            </jar>
        </target>
    </project>Is there a possibility that I modify this file to rather update jar files rather than creating new ones??????

    Something did occur to me.... If you use update, then
    presumably Ant works by taking newer/modified files
    that have timestamps after the modified time of the
    Jar... IF you were to move things around to other
    packages, or directories for non-class files, in your
    development process, then you could end up with
    duplicate items in different locations in the Jar,
    which could lead to hard to find bugs later if you
    forgot to update the paths elsewhere, or end up
    updating the wrong files. So IMO, it's safer all
    around to just let it create a new Jar so that it's
    always clean.Thanx all of you for taking out some time to advise me. I really appreciate that. The reason I am more interested in update is because of the situation I am trapped in. We are using a third party API to talk to the oracle database. Though I personally would prefer using JDBC myself but here I have no choice as its a decision made at much higher levels. Now there are advantages with this API that it maintains a cache and you donot have to do SQL queries all the time, but I was having problem since a few days as it would not always provide me with the right results. Since I was the one assigned to look into it I decided to decompile some of the classes and put them into a project in WSAD/Eclipse. Now there are thousands of classes in this jar file and I donot want to decompile all of them and add them to the project what I was wondering was to add this ant script to the project file add some debug statements and hopfully it would change only the files I want it to rather than creating a new jar file with just 10 files rather than all of them. This was the background of my question. So what do u suggest now. I donot want to do jar -uvf after moving class files everytime I compile thats why I wanted to use ant.

  • How can i add update signed jar file

    I am developing an applet which requires signing to run in a browser.
    I am developing supporting classes. But these class files have to be added
    to the jar. Isnt it??
    But to test the applet i need to load it in the browser each time i modify the class files. So the jar file need to be updated every time. But an
    IOError
    is being displayed when i try to update the signed jar file.
    How can i update signed jar file?? Or is there any othe way to test the signed applet during development??

    How can i update signed jar file?You can't, the signature is there to make sure the content of the jare hasn't been messed
    with.
    Either recreate the jar and re sign it or set up a policy during testing.

  • How Can i open Html file in a Browser from Jar file

    Hi
    i am having Html help files inside my Jar file ... if i use
    getclass().getRource("\lib\start.html");
    it is not opening ... so i have to ship seperate folders for html files along with jar files.... can anyone give the solution to have(open) html files inside the jar file and to open then in a default browser of any OS
    Regards
    Ganesan S

    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

  • In Creative Cloud files when I update my INDD file all my sharers lose access to the updated

    In Creative Cloud files when I update my INDD file and export the pdf file all the share links are lost . All my sharers lose access to the updated file. This does not happen at dropbox where when I update a file the share links still work. This is a real nuisance as I want to up date files and keep the link open. Is there a workaround?

    I just had similar experience where I lost links to my files in creative cloud.  There was an update to creative cloud today and my creative cloud on PC was replaced with a new one.  I went to my User Account and found two Creative Cloud Accounts: "Creative Cloud" and "Creative Cloud (unknown)".  The "Creative Cloud (unknown)" is where I found my linked files.  Check to see if you now have two creative accounts on your PC.  This may be the reason????
    I am currently copying and pasting all my files into the current "Creative Cloud" from the "Creative Cloud (unknown)".   I am only focusing on 1 InDesign Doc I have due to tomorrow and had to manually reset all the links to it.  If I have to manually restore all links to my files saved in Creative Cloud--I will blow a gasket on Monday! All PDF files (interactive ones especially) I have saved have lost their links--I don't even want to look at or deal with right now.

  • Finding a file in the current executable jar file.

    Hi all,
    I am writing a little command line type application and I thought it would be neat to embed it's 'help file' into it's executable JAR file.
    Please can someone show me how to code my application to extract a file from the JAR file from which the Main.class also came?
    (Is that possible?)
    I've been looking around, I can find out how to work with a different JAR file but NOT how to examine the currently 'executing' one.
    Many thanks,
    - jon.

    Excellent! Thank you very much. It's easy when you know how. This works a treat!:
         private static void printHelp() {
              InputStream helpFile = Misql.class.getClassLoader().getResourceAsStream("doc/MISQLhelp.txt");
              if (helpFile == null) {
                   _out.println("Help file: doc/MISQLhelp.txt not found.");
                   return;               
              try {
                   int c;
                   while ((c = helpFile.read()) != -1)
                        _out.write(c);
                   helpFile.close();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return;
         }

  • Updating a JAR file in a shared folder

    Hi,
    I have a JDK 6 Swing app running in a Windows Terminal Server. All users share the same JAR file. I start it using a bat file something like this:
    start /b c:\progra~1\java\jre\bin\javaw -jar gestor.jarAll works fine when users share the same JAR.
    However, when I try to update JAR file to a new version, "sometimes" (not always) when there are some users with JAR file running by JVM, it occurs some strange behaviours with the app, errors like JVM would become lost/crazy with a JAR in RAM and other JAR in disk.
    Is not this a good approach to update the app? Is it better to disconnect all users before update app?

    I don't know what SUNs policy on this is. But if I were you, I'd create a link (shortcut in windows) to the JAR file, and when you have a new version, put it in the same folder as the previous release, but with a different name, and update the link/shortcut. Users should only know about the link/shortcut. Depending on the behaviour of the windows shortcut, users using the JAR file will still use the old file as you update the link to point to the new file. Feasible?

  • Update a jar file

    hi i have a jar file, which has a fillowing directory. WEB-INF/classes.
    I want to add a new file to this directory in the jar file.
    How do i do that.

    You can use the Runtime class like:
    Runtime.getRuntime().exec("jar uf myJar.jar ClassToAdd.class");Unfortunatly you can't programmatically insert a new entry into an existing archive without creating a new one. I think this is a RFE.

  • Version-based download without WAR file?

    Hi,
    is it possible to make a version-based download without using WAR files?
    Thanks in advance
    Roland

    Hi Roland,
    I think version-based download has nothing to
    do with WAR-files.
    Your servlet container (e.g. Tomcat) only extracts
    Your war file on startup.
    Regards,
    Mathias

  • How do i run a file that is inside a jar file?

    Hi all,
    Here's what I'm trying to do: on a Unix (Solaris) box, I have a shell script bundled in with my application in a jar file. All I want to do is run the shell script from inside my java app, but I'm having trouble doing so.
    If i try the following code:
    Process process = Runtime.getRuntime().exec("myproject/tools/scripts/myscript.sh");
    int exitVal = process.waitFor();I get the following error:
    java.io.IOException: myproject/tools/scripts/myscripts.sh: not found
            at java.lang.UNIXProcess.forkAndExec(Native Method)
            at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
            at java.lang.Runtime.execInternal(Native Method)So then I did some searching and tried something like :
         ClassLoader cl = this.getClass().getClassLoader();
         URL the_file = cl.getResource("myproject/tools/scripts/myscript.sh");
         Process process = Runtime.getRuntime().exec(the_file);
         int exitVal = process.waitFor();but i get this error:
    cannot resolve symbol
    symbol  : method exec (java.net.URL)
    location: class java.lang.Runtime
         Process process = Runtime.getRuntime().exec(the_file);So is that the right way i should be doing this? Should i convert the URL (the_file)
    to something else before passing to exec()?
    Any hints/help/suggestions would be greatly appreciated.
    Thanks.

    The trouble with your first attempt might be that your relative path to the shell script is not relative to where you think it is. You could try again with an absolute path to the script as a simple test. Assuming that works you can try a more permanent solution -- perhaps a startup script for the Java app that defines a base path or a Properties file.
    You are exactly right about the problem with your second try. The exec method in all its forms expects a String as the first argument, so the URL is not going to help much, assuming that the URL is in fact non-null.

  • Opening a file (hst), executes the main jar file to open the hst file HELP

    Greetings,
    I have created a file with an extension *.hst, so in my Win XP computer, when I double click a .hst file, it should be opened in my program, which is a jar file, so during the installation I associate my program to this .hst file extension.
    After all this, when I double click this .hst file, it shows an error message that the jar file is not a vaid win32 application. I donot wish to convert my file to an .exe. Help ?
    Cheers,
    Raj

    How did you specify command line for your .hst file?
    It should be something like "java -classpath
    [youfile.jar] [youclass] %1"I have not specified command line for the .hst file.
    The .hst file is just a file that is created when my main program (jar file) saves its files., later If I double click this saved hst file, it should be opened in the main jar program.
    For the double click to work, I have created a constructor
    public hst(String hstfile)
       //code to set the file contents in the window.
    }the problem is that when I double click it says that the main jar file is not a valid win32 application, so what do I do ?
    Cheers,
    Raj

  • "no manifiest section for signature file entry" when run the Jar file

    I built an application by using JBuilder 8.0 and it works fine. But when I deploy it into a jar file, whenever I run it, the following exception appears:
    Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry javax/security/cert/Certificate.class
    at sun.securtiy.util.SignatureFileVerifier.verifySection
    Because I didn't do anything about the security when build the application. I am really confused. Can somebody help?

    I had a similiar problem using NetBeans. There must be a way to view the properties of your jar from Jbuilder and set its manifest. I am very new to this myself, but all I did was edit another manifest and copied into mine. Here is my example manifest:
    Manifest-Version: 1.0
    Main-Class: J3Ed
    The first line is the default line for a manifest. It is very simple and there is much more that could be added, but is not always necessary. I recommend reading the documentation :
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
    Also if you have an archiving utility such as powerarchiver or winzip, open your JAR and check to see that you have a MANIFEST.MF file. If you do then edit it where needed, if not create one and its relative location should be set to META-INF/MANIFEST.MF.
    Hope this helps.

Maybe you are looking for