Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Found a working solution by myself.</p> <p>All the external libraries in the dist/lin folder had a size of 0kb. So the exception was correct, of course.</p> <p>To get my application running I did the following in the project's jfx-impl.xml:</p> <p><strong>Add the classpath to manifest.mf</strong> </p> <pre><code>&lt;fxjar destfile="${jfx.deployment.dir}/${jfx.deployment.jar}" applicationClass="${main.class}" &gt; &lt;fileset dir="${build.classes.dir}"/&gt; &lt;manifest&gt; &lt;attribute name="Implementation-Vendor" value="${application.vendor}"/&gt; &lt;attribute name="Implementation-Title" value="${application.title}"/&gt; &lt;!-- NEW --&gt; &lt;attribute name="Class-Path" value="${jar.classpath}"/&gt; &lt;!-- NEW --&gt; &lt;attribute name="Implementation-Version" value="1.0"/&gt; &lt;/manifest&gt; &lt;/fxjar&gt; </code></pre> <p><strong>Create an output dir for web deployment</strong></p> <pre><code>&lt;property name="jfx.deployment.web.dir" location="${jfx.deployment.dir}/web" /&gt; &lt;mkdir dir="${jfx.deployment.web.dir}" /&gt; </code></pre> <p><strong>Set output dir for fxdeploy task</strong></p> <pre><code>&lt;fxdeploy width="${jfx.applet.width}" height="${jfx.applet.height}" outdir="${jfx.deployment.web.dir}" &lt;!-- NEW DIR --&gt; embedJNLP="true" outfile="${application.title}"&gt; &lt;info title="${application.title}" vendor="${application.vendor}"/&gt; &lt;application name="${application.title}" appclass="${main.class}"/&gt; &lt;resources type="eager"&gt; &lt;fileset dir="${jfx.deployment.web.dir}"&gt; &lt;!-- NEW DIR --&gt; &lt;include name="${jfx.deployment.jar}"/&gt; &lt;include name="lib/*.jar"/&gt; &lt;exclude name="**/jfxrt.jar"/&gt; &lt;/fileset&gt; &lt;/resources&gt; &lt;/fxdeploy&gt; </code></pre> <p>Now, I can deploy my desktop application and execute ist via doubleclick from windows explorer or by entering</p> <pre><code>java -jar TestApp.jar </code></pre> <p>There still exists some issue with the content of my newly created web-dir. </p> <ol> <li>The TestApp.jar ist not copied zo dist/web</li> <li>The referenced external jars are not copied to dist/web</li> </ol> <p>This is fine for me and will be fixed some time later. </p> <p>Hope this helps anyone else.</p>
 

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