In a problem that seems to be related to all JNLP files now Google Chrome has decided that it won't launch a JNLP file directly without prompting the annoying "this file may harm your computer" thing. So I have to click allow each and every time I want to display a study.
Google Chrome, an otherwise good product, fails miserably to give you an option to change this behavior while Firefox and IE open the JNLP file directly. People have been asking Google to fix this for 3 years now, without any positive response.
Selecting “Always open files of this type.” won't help since the prompt is displayed even before the file is downloaded, and when it finally downloads you end up with a collection of jnlp files in your downloads folder: viewer (2).jnlp, viewer (3).jnlp, viewer (4).jnlp,......viewer (55).jnlp,viewer (56).jnlp.
They refusal to fix this seems intentional, it looks like they don´t particularly care for Java Web Start.
Under which criteria Chrome decides to block or allow jnlp files? Nobody knows, for instance, the jnpl files from this page are launched directly: http://pscode.org/jws/api.html while the ones for http://dicom.vital-it.ch:8089/dcm4chee-web3/ are not (probably because those are dynamically generated while the firsts are static). And I could swear that they open on Chrome in linux but not on Windows.
I found a, kind of, solution: use the Deployment Toolkit Script from Java (http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html ), so now I launch Weasis like this:
deployJava.launchWebStartApplication('http://192.168.1.107:8080/weasis-pacs-connector/viewer.jnlp?patientID=' + aData[4]);
Works
on every browser, plus it removes the ugly popup window that was
opened while the jnlp file was downloaded.
I don´t know
exactly how this works but it does, I all know is that while doing it
this way the “Java” splash screen is displayed every time weasis
is launched, this is very annoying, but at least the stupid “this
file may harm your computer” thing is gone.
On the other
hand, I would like to know if it is possible to close all opened
studies in Weasis when I open a new one while still reusing the same
instance.
Thank you.
--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/7t8NPdcpT8A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/groups/opt_out.
As of April 2015, just like you anticipated, with the new version of Google Chrome NPAPI has been removed by default, by September 2015 the Java plug in will be gone once and for all from Chrome.
The deployJava.js is now useless and I still can't open Weasis automatically from Chrome by directly downloading the jnpl.
Google has now ignored the request for allowing the opening of jnpl files automatically for years now, this is obviously by design and won't be fixed.
The solution is to avoid Chrome.