<?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 Could not find or load main class only when running in linux outside talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306756#M144050</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I´m using Talend Open Studio for Data Integration (6.5.1) and I have a simple test job with a tJava_1 that only prints a line.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_job.PNG" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtbC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135237iDCBA02A6CCBA246C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtbC.png" alt="0683p000009LtbC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I try to run it in Talend works fine, when I build it and run it in Windows with the .bat file that is generated by Talend , works fine, but when I try to run it in Linux with the .sh file that is generated by Talend I get the error&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Error: Could not find or load main class sharepoint.helloworld_0_1.HelloWorld&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;(hello world is my job and sharepoint is my local repository)&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the computer where I have talend (with Windows) I'm using java&amp;nbsp;jre1.8.0_161.&lt;/P&gt; 
&lt;P&gt;In the linux computer I have the same (and I also tried with jdk1.8.0_161)&lt;/P&gt; 
&lt;P&gt;I configured my JAVA_HOME and PATH in the /etc/profile and I think thats fine, If I do java -version I get this:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;java version "1.8.0_161"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Java(TM) SE Runtime Environment (build 1.8.0_161-b12)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I also tried to run a HelloWorld made outside talend to see if Java was working fine and it is. So my guessing is that is something when is beeing build for Unix system, but I'm not sure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you have any other idea of what could be?&lt;/P&gt; 
&lt;P&gt;Thanks..&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:28:56 GMT</pubDate>
    <dc:creator>cmbalderrama</dc:creator>
    <dc:date>2024-11-16T08:28:56Z</dc:date>
    <item>
      <title>Could not find or load main class only when running in linux outside talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306756#M144050</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I´m using Talend Open Studio for Data Integration (6.5.1) and I have a simple test job with a tJava_1 that only prints a line.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_job.PNG" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtbC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135237iDCBA02A6CCBA246C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtbC.png" alt="0683p000009LtbC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I try to run it in Talend works fine, when I build it and run it in Windows with the .bat file that is generated by Talend , works fine, but when I try to run it in Linux with the .sh file that is generated by Talend I get the error&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Error: Could not find or load main class sharepoint.helloworld_0_1.HelloWorld&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;(hello world is my job and sharepoint is my local repository)&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the computer where I have talend (with Windows) I'm using java&amp;nbsp;jre1.8.0_161.&lt;/P&gt; 
&lt;P&gt;In the linux computer I have the same (and I also tried with jdk1.8.0_161)&lt;/P&gt; 
&lt;P&gt;I configured my JAVA_HOME and PATH in the /etc/profile and I think thats fine, If I do java -version I get this:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;java version "1.8.0_161"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Java(TM) SE Runtime Environment (build 1.8.0_161-b12)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I also tried to run a HelloWorld made outside talend to see if Java was working fine and it is. So my guessing is that is something when is beeing build for Unix system, but I'm not sure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you have any other idea of what could be?&lt;/P&gt; 
&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306756#M144050</guid>
      <dc:creator>cmbalderrama</dc:creator>
      <dc:date>2024-11-16T08:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Could not find or load main class only when running in linux outside talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306757#M144051</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Before building your Job, could you please go to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Window&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Preferences&lt;/SPAN&gt;&lt;SPAN&gt;, select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Talend&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Import/Export&lt;/SPAN&gt;&lt;SPAN&gt;, and then select the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Add classpath jar in exported jobs&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;check box to wrap the Jars in a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;classpath.jar&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file added to the built Job?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know if it is OK with you. And did you s&lt;SPAN&gt;elect "Java source"&amp;nbsp;check box on the "Build job " window&amp;nbsp;to export the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.java&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file holding Java classes generated by the Job when designing it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdFR"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdFR"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 30 Mar 2018 08:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306757#M144051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-30T08:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Could not find or load main class only when running in linux outside talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306758#M144052</link>
      <description>&lt;P&gt;Yes, Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;.Checking the&amp;nbsp;&lt;SPAN class="emphasis"&gt;Add classpath jar in exported jobs&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;check box worked. And I did have the Java source checkbox checked before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your quick answer and the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 19:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Could-not-find-or-load-main-class-only-when-running-in-linux/m-p/2306758#M144052</guid>
      <dc:creator>cmbalderrama</dc:creator>
      <dc:date>2018-03-30T19:33:06Z</dc:date>
    </item>
  </channel>
</rss>

