Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a JNLP that I use successfully.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;jnlp codebase="http://www.domain.com/tools" href="livechat.jnlp"&gt; &lt;information&gt; &lt;title&gt;Live Chat&lt;/title&gt; &lt;vendor&gt;vendor&lt;/vendor&gt; &lt;homepage href="www.domain.com"/&gt; &lt;description&gt;Live Chat Application&lt;/description&gt; &lt;icon href="images/logo.png"/&gt; &lt;icon kind="splash" href="images/logo.png"/&gt; &lt;shortcut online="true"&gt; &lt;desktop/&gt; &lt;menu submenu="sub menu name"/&gt; &lt;/shortcut&gt; &lt;/information&gt; &lt;security&gt; &lt;all-permissions/&gt; &lt;/security&gt; &lt;update check="always" policy="always"/&gt; &lt;resources&gt; &lt;j2se version="1.6+" java-vm-args="-esa -Xnoclassgc"/&gt; &lt;jar href="lib/livechat-100.jar"/&gt; &lt;/resources&gt; &lt;application-desc main-class="package.mainclass"/&gt; &lt;/jnlp&gt; </code></pre> <p>the way this is set up is the jnlp file is stored at www.domain.com\tools\ and the jar file is stored at www.domain.com\tools\lib\</p> <p>At this line you want to locate your main class. if you use a package (com.domain.application) you would use com.domain.application.mainclass</p> <p>otherwise you would just put your mainclass in the quotes.</p> <pre><code>&lt;application-desc main-class="package.mainclass"/&gt; </code></pre> <p>Be sure that you sign your jar file also. <a href="http://docs.oracle.com/javase/tutorial/deployment/jar/signing.html" rel="nofollow">Jar Signing</a></p> <hr> <p>You don't have to create an XML. If you open notepad and paste that into a blank page then save it as filename.jnlp it would save correctly. </p> <p>Your JNLP file depends a lot on your file structure for the web server/server your storing it on, as well as your package name of your application (if you created one) for example: </p> <p>I will create a java applet named applet1 with the following info: package: com.digitalck.applet1 mainclass: Applet1.java (your main class is the file that contains your public static void main() method) server structure: www.domain.com/tools/lib</p> <p>I will store the jnlp file in www.domain.com/tools and the SIGNED jar file in www.domain.com/tools/lib </p> <p>IN THE JNLP FILE: </p> <pre><code>codebase="domain.com/tools" href="livechat.jnlp"&gt; (this assumes the file is in my codebase location) &lt;jar href="lib/livechat-100.jar"/&gt; &lt;application-desc main-class="com.digitalck.applet1.Applet1"/&gt; </code></pre> <p>Hopefully that helps to clarify, I've shown the main points to modify to get yours to work correctly without knowing any other information about your application/applet or how you are storing the files.</p> <p><a href="https://www.google.com/search?q=jnlp&amp;aq=f&amp;oq=jnlp&amp;aqs=chrome.0.57j5j0l2j60l2.1809&amp;sourceid=chrome&amp;ie=UTF-8#hl=en&amp;safe=off&amp;sclient=psy-ab&amp;q=create%20jnlp&amp;oq=create%20jnlp&amp;gs_l=serp.3..35i39j0l3.4048.4710.0.5037.7.7.0.0.0.4.143.728.3j4.7.0.les;..0.0...1c.1.5.psy-ab.AxAqIqd4WHc&amp;pbx=1&amp;bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&amp;bvm=bv.43148975,d.aWc&amp;fp=443df112168ae7b8&amp;biw=1680&amp;bih=989" rel="nofollow">How to create JNLP files</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload