qz-print_jnlp.jnlp

36 views
Skip to first unread message

asi...@gmail.com

unread,
Sep 27, 2014, 3:26:06 AM9/27/14
to jzebra...@googlegroups.com
Hi there,

The applet wasn't loaded properly unless I use this: <param name="jnlp_href" value="jzebra/qz-print_jnlp.jnlp">

My question is: what does this param do? and do I really have to include it?

I can tell from my server logs that the file was not found where jzebra was looking at.

10x

Tres Finocchiaro

unread,
Sep 28, 2014, 1:53:42 PM9/28/14
to jZebra users
what does this param do? 

The parameter tells Java where the webstart XML file is located.

and do I really have to include it?

The software can be safely compiled without it, but you will need to delete the  "src/JNLP-INF" directory and recompile.

The reason it is used is because this is the recommend deployment method by Oracle.

Asi Lichtenstein

unread,
Sep 28, 2014, 1:55:59 PM9/28/14
to jzebra...@googlegroups.com
thanks for the info, I've included the relative path to this file but it seems that jzebra always tries to locate it at different location.
(the current location)

am I missing something?

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra

---
You received this message because you are subscribed to a topic in the Google Groups "jZebra users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jzebra-users/oOcmBkhE-nU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tres Finocchiaro

unread,
Sep 28, 2014, 2:00:56 PM9/28/14
to jZebra users
You can try to override the codebase parameter:

(if you are not using deployQZ, just provide it as an additional applet parameter).

      /**
* Optionally used to deploy multiple versions of the applet for mixed
* environments.  Oracle uses document.write(), which puts the applet at the
* top of the page, bumping all HTML content down.
*/
deployQZ();

/**
* Deploys different versions of the applet depending on Java version.
* Useful for removing warning dialogs for Java 6.  This function is optional
* however, if used, should replace the <applet> method.  Needed to address 
* MANIFEST.MF TrustedLibrary=true discrepency between JRE6 and JRE7.
*/
function deployQZ() {
    var attributes = {id: "qz", code:'qz.PrintApplet.class', codebase:'https://www.mysite.suffix',
archive:'qz-print.jar', width:1, height:1};
var parameters = {jnlp_href: 'qz-print_jnlp.jnlp', 
cache_option:'plugin', disable_logging:'false', 
initial_focus:'false'};
if (deployJava.versionCheck("1.7+") == true) {}
else if (deployJava.versionCheck("1.6.0_45+") == true) {}
else if (deployJava.versionCheck("1.6+") == true) {
delete parameters['jnlp_href'];
}
deployJava.runApplet(attributes, parameters, '1.5');
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.

Asi Lichtenstein

unread,
Sep 28, 2014, 2:03:53 PM9/28/14
to jzebra...@googlegroups.com
I'm not using deployQZ.
shouldn't the 
jnlp_href value be a relative path to  this file?



Asi Lichtenstein

unread,
Sep 28, 2014, 2:32:23 PM9/28/14
to jzebra...@googlegroups.com
got it working by fetching the file from the correct path using nginx.
Reply all
Reply to author
Forward
0 new messages