This discussion is archived
5 Replies Latest reply: Nov 8, 2012 1:01 PM by 967468 RSS

Custom splash screen only shows up when command line is used...

967468 Newbie
Currently Being Moderated
Hi,
Everything in my Java web start application works perfectly but, the custom splash screen only shows up when command line is used ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"), if I use the shortcut on the desktop or in the start menu, the Java 7 splash screen shows up (tested under Windows Vista and Seven). Does someone have any clues?
Thanks...

My jnlp file :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+" href="AcSent.jnlp">
  <information>
    <title>AcSent : Commande de repas</title>
    <description>AcSent - Commande de repas</description>
    <vendor>AcSent</vendor>
    <homepage href="http://www.xxx.eu" />
    <icon href="acSentIconBiseau.png" /> 
    <icon href="splashAcSentRC.png" kind="splash" />
    <shortcut online="true">
      <desktop />
      <menu submenu="AcSent" />
    </shortcut>
  </information>
  <security>
    <all-permissions />
  </security>
  <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" max-heap-size="128m" />
    <jar href="AcSentJnlpProgressIndicator.jar" download="progress" /> 
    <jar href="AcSentJnlp.jar" main="true" version="1.0" />
    <property name="jnlp.packEnabled" value="true" />
    <property name="jnlp.versionEnabled" value="true" />
  </resources>
  <application-desc name="AcSent" main-class="eu.acsent.jnlp.AcSentApplication" 
       progress-class="eu.acsent.jnlp.progressindicator.CustomProgress">  
  </application-desc>
</jnlp>
  • 1. Re: Custom splash screen only shows up when command line is used...
    967468 Newbie
    Currently Being Moderated
    Hi again,
    I made some researches :
    - The link in the generated shorcuts ("C:\Windows\SysWOW64\javaws.exe -localfile -J-Djnlp.application.href=http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp "C:\Users\Arnaud\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\69c1e9ee-1f252d1a") is not the same as the one I use in the command line ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"). Is there a way in the the JNLP file to tell how to generate shortcuts (not the icon, etc., but command line options)?
    - This sample (https://blogs.oracle.com/thejavatutorials/entry/changing_the_java_web_start) displays the splash screen when I click on the the generated shortcuts (I use Windows 7). I have copied the ButtonDemo jar file and the JNLP file on my IIS web server (Windows 2008 Server), this time the splash screen does not show up when I click the generated shortcuts but always shows up when I use the command line. Can someone tell me if it is a trouble with IIS ?
    Thanks again...
  • 2. Re: Custom splash screen only shows up when command line is used...
    817614 Explorer
    Currently Being Moderated
    You could do some debugging using the java console with all tracing on (see http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html#gcexdf).
    Maybe by comparing the console output (or the tracing files under c:/Users/me/AppData/LocalLow/Sun/Java/Deployment/log/) b/w good run and bad run, you could find out what's wrong.
  • 3. Re: Custom splash screen only shows up when command line is used...
    967468 Newbie
    Currently Being Moderated
    Hi,
    Thanks for your answer. I looked at the trace, the only difference I found is in the last line :
    - "Match: Running JVM args match: have:<-Djnlp.application.href=http://acsent-it.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp> satisfy want:<>" when I use the shortcut (no splash screen).
    - "Match: Running JVM args match: have:<> satisfy want:<>" when I use the command line (the splash screen is displayed). But when I use the play buttton on the cache viewer (javaws -viewer), I have the same trace but no splash screen. Really strange...
    I copied the button demo (https://blogs.oracle.com/thejavatutorials/entry/changing_the_java_web_start) on my local IIS (Windows 7). The splash sreen always shows up if I use the shortcut or the command line. Perhaps, the trouble comes from my JNLP file. Any idea ?
    Thanks again...
  • 4. Re: Custom splash screen only shows up when command line is used...
    946128 Newbie
    Currently Being Moderated
    I have found that if the file on the web server isnt "ANSI" the splash will not show.
    Try to open the jnlp file in notepad and select "Save As" to check if Encoding is "ANSI". If not, try to change it to ANSI and save.

    Edited by: 943125 on 2012-10-22 09:39
  • 5. Re: Custom splash screen only shows up when command line is used...
    967468 Newbie
    Currently Being Moderated
    Hi,
    Thanks for your answer. My file was saved as UTF-8, I changed that to ANSI but the splash screen still does not show up.
    Bye...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points