<p>One of the Java apps we use in our Citrix environment was updated and now it&#8217;s using the <strong>.jar file extension</strong>. This application runs fine on the server, but not over Citrix connections.</p>
<p>I have tried many <strong>Path to the executable file</strong>, <strong>Command line argument</strong>, and <strong>Working director</strong>y combinations but without luck.</p>
<p>So the best way to <strong>publish the .jar file</strong> on Xenapp farm is to <strong>use the .bat file</strong>.</p>
<p><strong>Create the .bat file</strong> on the Citrix VDA server</p>
<p>Use the following command in the .bat file:</p>
<p><strong>start &#8220;C:\Program Files\Java\jre1.8.0_301\bin\javaw.exe&#8221; ConverterJava-1.0.16.jar</strong></p>
<p>Change the path to javaw.exe if another version of Java is used on the server. Also, change the name of the .jar file.</p>
<p>I have also copied the <strong>CoverterJave-1.0.16.jar</strong> file in <strong>C:\Program Files\Java\jre1.8.0_301\bin</strong> directory.</p>
<p>When publishing this .bat file the following has to be done:</p>
<p>In the p<strong>ath to the executable file</strong> field browse to the path of the .bat file you have created.</p>
<p>The <strong>command-line argument</strong> should be left empty since we&#8217;re using the .bat file.</p>
<p>The <strong>working directory</strong> should be set to the folder where the .bat file is located.</p>
<p><img class="alignnone wp-image-4304 size-full" title="publish the .jar file on Xenapp" src="https://www.wincert.net/wp-content/uploads/2021/08/validator.png" alt="publish the .jar file on Xenapp" width="758" height="331" /></p>
<p>Now, you should be able to start the .jar file over Citrix Xenapp normally.</p>
<p>Comments are welcome!</p>

How to publish the .jar file on Xenapp farm
