Note that there are some explanatory texts on larger screens.

plurals
  1. POUnresponsive application after launched with JNLP
    primarykey
    data
    text
    <p>I'm looking into the JNLP stuff and I decided to try to run a small application that I made with JNLP. I created a simple java program and the jnlp file. I upload both the jar file and the jnlp file to my apache server, along with an html file to display the Launch button. This is the jnlp file (I'm not 100% sure if it's correct):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;jnlp spec="1.0+" codebase="http://localhost:8080/" href="example.jnlp"&gt; &lt;information&gt; &lt;title&gt;Example&lt;/title&gt; &lt;vendor&gt;Dev&lt;/vendor&gt; &lt;/information&gt; &lt;resources&gt; &lt;!-- Application Resources --&gt; &lt;j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/&gt; &lt;jar href="Example.jar" main="true" /&gt; &lt;/resources&gt; &lt;application-desc name="Example" main-class="main.Example" width="600" height="600"&gt; &lt;/application-desc&gt; &lt;update check="background"/&gt; &lt;/jnlp&gt; </code></pre> <p>The following is my html file on my apache server:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Example&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script src="http://www.java.com/js/deployJava.js"&gt;&lt;/script&gt; &lt;script&gt; // using JavaScript to get location of JNLP file relative to HTML page var dir = location.href.substring(0, location.href.lastIndexOf('/')+1); var url = dir + "example.jnlp"; document.alert(dir); deployJava.createWebStartLaunchButton(url, '1.6.0'); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The problem is, when I click the Launch button it asks if I want to run example.jnlp. Then after a bit the application just opens up but when I click any the buttons they do nothing. It's as if the GUI is showing but all over the under lying logic is not there. Any idea what may be the issue?</p>
    singulars
    1. This table or related slice is empty.
    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. This table or related slice is empty.
    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