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).1 person found this helpful
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 ?
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
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.