Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to include jar dependencies in java webstart project
    primarykey
    data
    text
    <p>We are trying to develop a printing application using java webstart. We created the jar as a normal jar file using eclipse. Our application needs external libraries for connecting to the database, converting the data to bytes etc. </p> <p>We were able to do this before by putting the necessary jars in the /ext/ directory of the jre folder. However this caused a library conflict with our tomcat server so we would like to avoid this approach. </p> <p>We also tried exporting the project as a runnable jar as the needed libraries are already packaged in the jar also. But when trying to run the application it seems that it is not able to see the libraries within the jar.</p> <p>We also know that we can place the needed libraries in a folder alongside the jar and reference them one by one in the jnlp file. However we would like to avoid this approach as we have a lot of external jars and we do not want to import them one by one :)</p> <p>So my question is how do we package the java webstart jar properly? Is there another way? What is the best approach?</p> <p>Please see below for our jnlp file:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;jnlp codebase="http://192.168.1.169/webstart/" href="launch.jnlp" spec="1.0+"&gt; &lt;information&gt; &lt;title&gt;PrinterWebStart&lt;/title&gt; &lt;vendor&gt;robert&lt;/vendor&gt; &lt;homepage href=""/&gt; &lt;description&gt;PrinterWebStart&lt;/description&gt; &lt;description kind="short"&gt;PrinterWebStart&lt;/description&gt; &lt;/information&gt; &lt;update check="always"/&gt; &lt;security&gt; &lt;all-permissions/&gt; &lt;/security&gt; &lt;resources&gt; &lt;j2se version="1.5+"/&gt; &lt;jar href="printer-base.jar" main="true"/&gt; &lt;/resources&gt; &lt;application-desc main-class="com.ccti.printer.task.PrinterTaskPanel"&gt; &lt;/application-desc&gt; &lt;/jnlp&gt; </code></pre>
    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.
 

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