Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: javaws issue - importing two jnlp files into system cache

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javaws issue - importing two jnlp files into system cache

    Have an issue with deploying our application, which comes in two parts, with javaws

    In our installer (which is coded in NSIS) we call javaws twice, each time referencing a different jnlp file. It looks like this:

     javaws -wait -shortcut -import -system http://192.168.1.82/launch?[params]
     javaws -wait -shortcut -import -system http://192.168.1.82/launch?[slightly different params]

    Whichever jnlp file is second gets imported into System Applications. My guess is that it is overwriting the first imported application.

    If anyone can shed light on how to fix this I would appreciate any help.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: javaws issue - importing two jnlp files into system cache

    I'm not sure that your problem is clear. What needs fixing? Describe clearly what is happening and then what you'd like to happen.

  3. #3
    Member
    Join Date
    Feb 2014
    Posts
    180
    Thanks
    0
    Thanked 48 Times in 45 Posts

    Default Re: javaws issue - importing two jnlp files into system cache

    Are you saying that
    • you have 2 separately packaged parts of the application that are to be imported into the system cache,
    • both of which have almost identical URL (to the respective jnlp files) except for the query string (the part after '?' in the URL), and
    • it seems that only the 2nd jnlp file remains in the cache?

    One way to test if the 2nd jnlp file is indeed overwriting the 1st is by executing the javaws commands manually via command line. Check the cache after each execution to see if the 1st jnlp file gets cached before being overwritten by the 2nd jnlp file.

    If the 1st jnlp file is being overwritten, it might be that the 2 jnlp files are not uniquely identified. See Java Web Start - Frequently Asked Questions (FAQ) for the answer to the question, "How are Applications uniquely identified?"

    I'm not sure... perhaps "Version-based Download Protocol" might also help in your case. See https://edelivery.oracle.com/otn-pub..._5-mr-spec.pdf (PDF file)

Similar Threads

  1. Issue while deploying JNLP application in Webspher Application Server.
    By nageshvk in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 11th, 2014, 09:12 AM
  2. Java Issue / Cache issue
    By VisualPK in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 14th, 2012, 08:43 PM
  3. How to load specific .midi (music) files from the cache?
    By Unseen in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 9th, 2012, 04:42 PM
  4. Issue with PATH system variable
    By Melawe in forum The Cafe
    Replies: 12
    Last Post: December 29th, 2011, 08:07 AM
  5. importing class files :S
    By b3ard in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 2nd, 2010, 03:45 AM