<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exporting a Job script : sh with classpath.jar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338803#M107010</link>
    <description>What about creating the shell scripts for yourself automatically. Every necessary information are present. I would write a small java program which reads the current shell script and and scans all jars in the folders and create a new one.</description>
    <pubDate>Wed, 25 May 2016 08:31:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-25T08:31:43Z</dc:date>
    <item>
      <title>Exporting a Job script : sh with classpath.jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338801#M107008</link>
      <description>Hi, 
&lt;BR /&gt;In Talend 
&lt;B&gt; 4.0&lt;/B&gt; I have a project with some job and sub-jobs. I "export a job script" by right click on the main job (see image). 
&lt;BR /&gt;The 
&lt;U&gt;&lt;B&gt; shell generated has not the list of library parameters but just "classpath.jar" without ROOT_PATH &lt;/B&gt;&lt;/U&gt;: 
&lt;BR /&gt;The Shell generated : 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;BR /&gt;cd `dirname $0`&lt;BR /&gt;&amp;nbsp;ROOT_PATH=`pwd`&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: talenddemosjava.priortest_0_1.priorTest --context=Default $* &lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;The shell I would wish, with all the libraries explicited : 
&lt;BR /&gt; 
&lt;PRE&gt;cd `dirname $0`&lt;BR /&gt;&amp;nbsp;ROOT_PATH=`pwd`&lt;BR /&gt;java -Xms256M -Xmx1024M -cp $ROOT_PATH/priortest_0_1.jar:$ROOT_PATH/../lib/systemRoutines.jar:$ROOT_PATH/../lib/userRoutines.jar:$ROOT_PATH/../lib: talenddemosjava.priortest_0_1.priorTest --context=Default $* &lt;/PRE&gt; 
&lt;BR /&gt;(The Talend v6.2 exports this good second shell content. 
&lt;U&gt;BUT I must stay with v4.0 &lt;/U&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; ) 
&lt;BR /&gt;How could I have all the libraries listed in parameters in the shell file ? 
&lt;BR /&gt;Thank you for any help. 
&lt;BR /&gt;Image : [edit : add the png) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME8H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154155i083DB39BCE9A1F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME8H.png" alt="0683p000009ME8H.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 24 May 2016 10:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338801#M107008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T10:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a Job script : sh with classpath.jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338802#M107009</link>
      <description>During this time I'have continued my search...
&lt;BR /&gt;In the "Window" menu, "Preferences", "Talend, Import/Export, Shell Setting :
&lt;BR /&gt;if the command "%GENERATED_TOS_CALL%" is entered twice , like this :
&lt;BR /&gt;the shell file contains the two texts, one with just classpath.jar , the other one with all the librairies :
&lt;BR /&gt;
&lt;PRE&gt;cd `dirname $0`&lt;BR /&gt;&amp;nbsp;ROOT_PATH=`pwd`&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: talenddemosjava.priortest_0_1.priorTest --context=Default $* &lt;BR /&gt;cd `dirname $0`&lt;BR /&gt;&amp;nbsp;ROOT_PATH=`pwd`&lt;BR /&gt;&amp;nbsp;java -Xms256M -Xmx1024M -cp $ROOT_PATH:$ROOT_PATH/../lib/systemRoutines.jar:$ROOT_PATH/../lib/userRoutines.jar::.:$ROOT_PATH/priortest_0_1.jar:$ROOT_PATH/../lib: talenddemosjava.priortest_0_1.priorTest --context=Default $* &lt;/PRE&gt;
&lt;BR /&gt;I think so it was a bug.</description>
      <pubDate>Tue, 24 May 2016 11:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338802#M107009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T11:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a Job script : sh with classpath.jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338803#M107010</link>
      <description>What about creating the shell scripts for yourself automatically. Every necessary information are present. I would write a small java program which reads the current shell script and and scans all jars in the folders and create a new one.</description>
      <pubDate>Wed, 25 May 2016 08:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exporting-a-Job-script-sh-with-classpath-jar/m-p/2338803#M107010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T08:31:43Z</dc:date>
    </item>
  </channel>
</rss>

