<?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: Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273319#M50331</link>
    <description>OK again, check if it looks like in your studio (it does not matter which OS, the path to the java jdk is for sure different on your machine). 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD79.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143637i0F4517D3D867A628/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD79.png" alt="0683p000009MD79.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;and than this: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD7A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150825i6ABF3E4B1326D8F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD7A.png" alt="0683p000009MD7A.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;the weird problem is the list of jres will be filled right after you have clicked on the node (Execution Environment) -&amp;gt; this is also a bug. 
&lt;BR /&gt;If both are empty, add in this dialog the current java runtime. 
&lt;BR /&gt;The studio does not use the JAVA_HOME env var and the CLASSPATH variable for the studio cannot manipulated from outside. The studio also does not read this var from the system. Actually the CLASSPATH var should never be set in the system because it depends on the application.</description>
    <pubDate>Thu, 09 Apr 2015 16:03:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-09T16:03:42Z</dc:date>
    <item>
      <title>Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273311#M50323</link>
      <description>Hi all, 
&lt;BR /&gt;I had a totally running enviroment with Talend for Big Data on Ubuntu Linux (12.04 LTS). 
&lt;BR /&gt;We have changed the Java version from 1.6 to 1.7 with command:&amp;nbsp;sudo update-alternatives --config java and then switched back to Java 1.6 
&lt;BR /&gt;Now all Talend jobs don't work. 
&lt;BR /&gt;The error is (in this example for the job "User" in the project BD): 
&lt;BR /&gt; 
&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: bd/user_0_1/User 
&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: bd.user_0_1.User 
&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:217) 
&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method) 
&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:205) 
&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:323) 
&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) 
&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:268) 
&lt;BR /&gt;Could not find the main class: bd.user_0_1.User. Program will exit. 
&lt;BR /&gt; 
&lt;BR /&gt;I think this happen because the variables JAVA_HOME and CLASSPATH does not have a value. 
&lt;BR /&gt;Anyone know how to set this variables ? 
&lt;BR /&gt;We are using Talend for Big Data version 5.5.1.r118616 
&lt;BR /&gt;java -version return:&amp;nbsp; 
&lt;BR /&gt;java version "1.6.0_33" 
&lt;BR /&gt;OpenJDK Runtime Environment (IcedTea6 1.13.5) (6b33-1.13.5-1ubuntu0.12.04) 
&lt;BR /&gt;OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode) 
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Sat, 16 Nov 2024 11:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273311#M50323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273312#M50324</link>
      <description>Your post is a bit confusing: 
&lt;BR /&gt;At first you sad you have changed the Java version and have also changed the alternatives but actually this should cause using Java 7 as default. But your check of the java version still shows Java 6. 
&lt;BR /&gt;What do you mean with running the job: do you mean in the studio or do you mean the already exported jobs (e.g. running per cron) does not work anymore? 
&lt;BR /&gt;If it is the studio: 
&lt;BR /&gt;Please open the preferences and here Java-Installed JREs and take care you have Java 7 here in the list. 
&lt;BR /&gt;Next setup the variables: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCoz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142410iDB5C1F8B3AF55631/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCoz.png" alt="0683p000009MCoz.png" /&gt;&lt;/span&gt;Here an example for an Mac but it works in the same way under Linux.</description>
      <pubDate>Wed, 08 Apr 2015 20:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273312#M50324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T20:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273313#M50325</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Your post is a bit confusing:&lt;BR /&gt;At first you sad you have changed the Java version and have also changed the alternatives but actually this should cause using Java 7 as default. But your check of the java version still shows Java 6.&lt;BR /&gt;What do you mean with running the job: do you mean in the studio or do you mean the already exported jobs (e.g. running per cron) does not work anymore?&lt;BR /&gt;If it is the studio:&lt;BR /&gt;Please open the preferences and here Java-Installed JREs and take care you have Java 7 here in the list.&lt;BR /&gt;Next setup the variables:&lt;BR /&gt;&lt;BR /&gt;Here an example for an Mac but it works in the same way under Linux.&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thank you for the reply.To clarify a bit: we switched to Java 7 with update alternatives (Java 7 is already installed) and then we switched back to Java 6 (always with update alternatives).Before this process all is working, after the two switch we have the error. Soon i w ill try your solution and let you know.</description>
      <pubDate>Thu, 09 Apr 2015 08:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273313#M50325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T08:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273314#M50326</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Your post is a bit confusing:&lt;BR /&gt;At first you sad you have changed the Java version and have also changed the alternatives but actually this should cause using Java 7 as default. But your check of the java version still shows Java 6.&lt;BR /&gt;What do you mean with running the job: do you mean in the studio or do you mean the already exported jobs (e.g. running per cron) does not work anymore?&lt;BR /&gt;If it is the studio:&lt;BR /&gt;Please open the preferences and here Java-Installed JREs and take care you have Java 7 here in the list.&lt;BR /&gt;Next setup the variables:&lt;BR /&gt;&lt;BR /&gt;Here an example for an Mac but it works in the same way under Linux.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;We have tried with your solution, but there is not any entry "Java-Installed JRE". 
&lt;BR /&gt;Under Java there is only two entries that, translated in english, are: 
&lt;BR /&gt; 
&lt;BR /&gt;user libraries (that is empty) 
&lt;BR /&gt;path variables (contains a lot of absolute path with jar classes) 
&lt;BR /&gt; 
&lt;BR /&gt;I forgot to mention that we run the job from inside the studio 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDGY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131802iC6D2D2CA9C83BFA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDGY.png" alt="0683p000009MDGY.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 09 Apr 2015 10:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273314#M50326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T10:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273315#M50327</link>
      <description>Hi badlinhat, 
&lt;BR /&gt;So far, talend don't support for Open JDK. Have you tried Oracle JDK to see if everything is OK with you? 
&lt;BR /&gt;Have you already checked document about: 
&lt;A href="https://help.talend.com/search/all?query=Compatible+Platforms&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Compatible Platforms&lt;/A&gt;? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 09 Apr 2015 12:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273315#M50327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T12:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273316#M50328</link>
      <description>Hi Sabrina, this is a typical support answer what actually does not help. This issue is well known and has nothing to do with OpenJDK or Oracle JDK. It is an issue which is caused by a confusion of the studio about the Java releases. I have not figured out what exactly happens but it occurs also on a Mac if you switch the Java version and on a Mac there is usually non OpenJDK running. 
&lt;BR /&gt;I have to setup the JREs and next the libraries ALWAYS when I change anything in the Java release (e.g. an update from Oracle). 
&lt;BR /&gt;For me it looks like a bug.</description>
      <pubDate>Thu, 09 Apr 2015 12:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273316#M50328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273317#M50329</link>
      <description>Hi 
&lt;A href="https://www.talendforge.org/forum/profile.php?id=22952" target="_blank" rel="nofollow noopener noreferrer"&gt;jlolling&lt;/A&gt;,
&lt;BR /&gt;Thanks for your quick response and explanation.
&lt;BR /&gt;We will make an investigation on it to see if it is a bug.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 09 Apr 2015 12:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273317#M50329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273318#M50330</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi badlinhat,&lt;BR /&gt;So far, talend don't support for Open JDK. Have you tried Oracle JDK to see if everything is OK with you?&lt;BR /&gt;Have you already checked document about:TalendHelpCenter:Compatible+Platforms?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Sabrina, 
&lt;BR /&gt;thank you for your reply. 
&lt;BR /&gt;We have switched to Oracle Java 1.6, this is the output of "java -version": 
&lt;BR /&gt;java version "1.6.0_31" 
&lt;BR /&gt;Java(TM) SE Runtime Environment (build 1.6.0_31-b04) 
&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) 
&lt;BR /&gt;But the error remain the same.... 
&lt;BR /&gt;Anyone know how to set JAVA_HOME and CLASSPATH ?</description>
      <pubDate>Thu, 09 Apr 2015 15:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273318#M50330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273319#M50331</link>
      <description>OK again, check if it looks like in your studio (it does not matter which OS, the path to the java jdk is for sure different on your machine). 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD79.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143637i0F4517D3D867A628/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD79.png" alt="0683p000009MD79.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;and than this: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD7A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150825i6ABF3E4B1326D8F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD7A.png" alt="0683p000009MD7A.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;the weird problem is the list of jres will be filled right after you have clicked on the node (Execution Environment) -&amp;gt; this is also a bug. 
&lt;BR /&gt;If both are empty, add in this dialog the current java runtime. 
&lt;BR /&gt;The studio does not use the JAVA_HOME env var and the CLASSPATH variable for the studio cannot manipulated from outside. The studio also does not read this var from the system. Actually the CLASSPATH var should never be set in the system because it depends on the application.</description>
      <pubDate>Thu, 09 Apr 2015 16:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273319#M50331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T16:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273320#M50332</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;OK again, check if it looks like in your studio (it does not matter which OS, the path to the java jdk is for sure different on your machine).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and than this:&lt;BR /&gt;&lt;BR /&gt;the weird problem is the list of jres will be filled right after you have clicked on the node (Execution Environment) -&amp;gt; this is also a bug.&lt;BR /&gt;If both are empty, add in this dialog the current java runtime.&lt;BR /&gt;The studio does not use the JAVA_HOME env var and the CLASSPATH variable for the studio cannot manipulated from outside. The studio also does not read this var from the system. Actually the CLASSPATH var should never be set in the system because it depends on the application.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;jlolling,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;But as i write on a previous post (see screenshoot attached) we don't have an option like this... 
&lt;BR /&gt;I cannot choose JRE versione inside Talend even if I run Talend as a super user. 
&lt;BR /&gt;I find an ".ini" file that contains the parameter for the JVM, but i don't know how modify it...</description>
      <pubDate>Thu, 09 Apr 2015 17:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273320#M50332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T17:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273321#M50333</link>
      <description>OK I am running out of ideas. I have never seen a studio which does lacks these fundamental settings. 
&lt;BR /&gt;Perhaps it helps if you give the studio an explicit -vm parameter pointing to the java home in the ini file.</description>
      <pubDate>Thu, 09 Apr 2015 17:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273321#M50333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T17:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273322#M50334</link>
      <description>Hi badlinhat, 
&lt;BR /&gt;Is there any update for your issue? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 13 Apr 2015 09:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2273322#M50334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-13T09:32:53Z</dc:date>
    </item>
  </channel>
</rss>

