<?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: How to retain edited .java file of a Talend job? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340611#M108629</link>
    <description>&lt;P&gt;Thanks. I tried the 2 suggestions; but still the same issue.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 09:28:25 GMT</pubDate>
    <dc:creator>Wawee</dc:creator>
    <dc:date>2021-04-30T09:28:25Z</dc:date>
    <item>
      <title>How to retain edited .java file of a Talend job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340607#M108625</link>
      <description>&lt;P&gt;&lt;B&gt;Talend Cloud Real-Time Big Data Platform version 7.3.1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried editing the Talend job's java code in the following location:&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;lt;TalendInstallationDirectory&amp;gt;&lt;/I&gt;\workspace\&lt;I&gt;&amp;lt;ProjectName&amp;gt;&lt;/I&gt;\poms\jobs\process\&lt;I&gt;&amp;lt;JobName&amp;gt;&lt;/I&gt;\src\main\java\&lt;I&gt;&amp;lt;project_name&amp;gt;&lt;/I&gt;\&lt;I&gt;&amp;lt;jobname&amp;gt;\&lt;/I&gt;&lt;B&gt;&lt;I&gt;&amp;lt;jobname&amp;gt;&lt;/I&gt;.java&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose is to try to resolve the following Java error during Talend job execution:&lt;/P&gt;&lt;P&gt;&lt;I&gt;Exception in thread "main" java.lang.&lt;/I&gt;&lt;B&gt;&lt;I&gt;NoClassDefFoundError: org/apache/logging/log4j/LogManager&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following line of code was added:&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;import org.apache.logging.log4j.LogManager;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After re-executing the Talend job, the added line of code is automatically being deleted. How do I enforce Talend application to retain the modified code in &lt;B&gt;&lt;I&gt;&amp;lt;jobname&amp;gt;&lt;/I&gt;.java &lt;/B&gt;file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Note:&lt;/B&gt; I have already tried the following.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Added &lt;B&gt;tLibraryLoad&lt;/B&gt; component; but this is not the recommended solution since exporting and importing the Talend job to others' similar Talend setup does not have any issue on the &lt;B&gt;&lt;I&gt;NoClassDefFoundError&lt;/I&gt;&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;Explicitly added/installed the module/Jar file in the routine code's library.&lt;/LI&gt;&lt;LI&gt;Explicitly added the Jar file in the &lt;B&gt;Package Explorer&lt;/B&gt; of the project's &lt;B&gt;Maven Dependencies&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;Re-ordered build path to move &lt;B&gt;Maven Dependencies&lt;/B&gt; on top.&lt;/LI&gt;&lt;LI&gt;Lastly, even re-extrated/re-installed a new &amp;amp; fresh Talend application; but still encountering the same Java error that Talend cannot locate the class path in the specified jar file.&lt;/LI&gt;&lt;LI&gt;Modified the project's java code but it is automatically being removed; so posted this topic  for question.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340607#M108625</guid>
      <dc:creator>Wawee</dc:creator>
      <dc:date>2024-11-16T00:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain edited .java file of a Talend job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340608#M108626</link>
      <description>&lt;P&gt;Hi maybe you could use :&lt;/P&gt;&lt;P&gt;File --&amp;gt; project Settings --&amp;gt; Maven &lt;/P&gt;&lt;P&gt;and you will see a window where you  can force the synchronization of the poms.&lt;/P&gt;&lt;P&gt;and in filter : label=your job name&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 09:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340608#M108626</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-30T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain edited .java file of a Talend job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340609#M108627</link>
      <description>&lt;P&gt;else maybe this topic :&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/article/Exception-in-thread-main-java-lang-NoClassDefFoundError-UV6Eg&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 09:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340609#M108627</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-30T09:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain edited .java file of a Talend job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340610#M108628</link>
      <description>&lt;P&gt;else use tLoadLibrary component and load the log4j jar with it&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 09:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340610#M108628</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-30T09:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to retain edited .java file of a Talend job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340611#M108629</link>
      <description>&lt;P&gt;Thanks. I tried the 2 suggestions; but still the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 09:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-retain-edited-java-file-of-a-Talend-job/m-p/2340611#M108629</guid>
      <dc:creator>Wawee</dc:creator>
      <dc:date>2021-04-30T09:28:25Z</dc:date>
    </item>
  </channel>
</rss>

