R
Ramon F Herrera
Greetings to all. Long time no see. I am wearing my Java developer hat
again.
It has been a while since the last time I deployed my apps through
JNLP, and something is not working properly. I need a sanity check.
This what I have done so far.
(1) I took the sample file below from the Java site.
Question 1: The lines where the "codebase" and "href" are defined are
really a self-reference, correct? IOW: The concatenation of "codebase"
and its "href" should provide the JNLP file in question, right? This
is like a file containing its filename inside.
(2) I assume that I have to modify 4 lines:
(2a) The line where "codebase" is defined
(2b) The line where the first "href" is defined
(2c) The line where "jar href" is defined
(2d) The line where "application-desc main-class" is defined.
Am I doing anything wrong this far?
TIA,
-Ramon
------------------------------------------------
http://java.sun.com/docs/books/tutorial/deployment/webstart/deploying.html
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Notepad -->
<jnlp spec="1.0+"
codebase="http://java.sun.com/docs/books/tutorialJWS/deployment/
webstart/examples/"
href="Notepad.jnlp">
<information>
<title>Notepad Demo</title>
<vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
<description>Notepad Demo</description>
<homepage href="http://java.sun.com/docs/books/tutorial/
deployment/webstart/running.html"/>
<description kind="short">ClickMeApp uses 3 custom classes plus
several
standard ones</description>
<offline-allowed/>
</information>
<resources>
<jar href="Notepad.jar"/>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc main-class="Notepad"/>
</jnlp>
again.
It has been a while since the last time I deployed my apps through
JNLP, and something is not working properly. I need a sanity check.
This what I have done so far.
(1) I took the sample file below from the Java site.
Question 1: The lines where the "codebase" and "href" are defined are
really a self-reference, correct? IOW: The concatenation of "codebase"
and its "href" should provide the JNLP file in question, right? This
is like a file containing its filename inside.
(2) I assume that I have to modify 4 lines:
(2a) The line where "codebase" is defined
(2b) The line where the first "href" is defined
(2c) The line where "jar href" is defined
(2d) The line where "application-desc main-class" is defined.
Am I doing anything wrong this far?
TIA,
-Ramon
------------------------------------------------
http://java.sun.com/docs/books/tutorial/deployment/webstart/deploying.html
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Notepad -->
<jnlp spec="1.0+"
codebase="http://java.sun.com/docs/books/tutorialJWS/deployment/
webstart/examples/"
href="Notepad.jnlp">
<information>
<title>Notepad Demo</title>
<vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
<description>Notepad Demo</description>
<homepage href="http://java.sun.com/docs/books/tutorial/
deployment/webstart/running.html"/>
<description kind="short">ClickMeApp uses 3 custom classes plus
several
standard ones</description>
<offline-allowed/>
</information>
<resources>
<jar href="Notepad.jar"/>
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se"/>
</resources>
<application-desc main-class="Notepad"/>
</jnlp>