This content has been marked as final. Show 5 replies
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 ?
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.
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 ?