<?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 does Java work in Talend? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304430#M76206</link>
    <description>&lt;P&gt;Can you be a bit more specific on what you are trying to achieve? Simply importing your predefined classes can happen by going to "Advanced  Settings" tab of the tJava component and adding them. If its a non-standard library, you may want to use tLibraryLoad component in pre-job or main job and then register the imports in the "Advanced Settings" tab.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 15:53:59 GMT</pubDate>
    <dc:creator>root</dc:creator>
    <dc:date>2020-09-30T15:53:59Z</dc:date>
    <item>
      <title>How does Java work in Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304427#M76203</link>
      <description>I am trying to learn Java within Talend and seems to be running into errors. The code works fine here:
&lt;BR /&gt;
&lt;A href="http://ideone.com/ydUNgo" target="_blank" rel="nofollow noopener noreferrer"&gt;http://ideone.com/ydUNgo&lt;/A&gt;
&lt;BR /&gt;
&lt;PRE&gt;import java.util*;&lt;BR /&gt;import java.lang.*;&lt;BR /&gt;import java.io.*;&lt;BR /&gt;class Stringdemo &lt;BR /&gt;{&lt;BR /&gt;	public static void main (String [] args)  throws java.lang.Exception&lt;BR /&gt;	{&lt;BR /&gt;		String str1 = "Jake Wagner";&lt;BR /&gt;		String str2 = "Tony Ruggeri";&lt;BR /&gt;		String str3 = "tony ruGGeri";&lt;BR /&gt;		&lt;BR /&gt;		// checking for equality&lt;BR /&gt;		boolean retval1 = str2.equals(str1);&lt;BR /&gt;		boolean retval2 = str2.equalsIgnoreCase(str3);&lt;BR /&gt;		&lt;BR /&gt;		// prints the return value&lt;BR /&gt;		System.out.println("str2 is equal to str1 = " + retval1);&lt;BR /&gt;		System.out.println("str2 is equal to str3 = " + retval2);&lt;BR /&gt;		&lt;BR /&gt;	}&lt;BR /&gt;}&lt;/PRE&gt;
&lt;BR /&gt;Error in Talend using tJava:
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems:&amp;nbsp;
&lt;BR /&gt; Syntax error on token "import", assert expected
&lt;BR /&gt; java.util cannot be resolved to a type
&lt;BR /&gt; Syntax error on tokens, delete these tokens
&lt;BR /&gt; java.lang.java cannot be resolved to a type
&lt;BR /&gt; Syntax error on tokens, delete these tokens
&lt;BR /&gt; Syntax error on token "*", class expected
&lt;BR /&gt; The method main cannot be declared static; static methods can only be declared in a static or top level type
&lt;BR /&gt;Any assistance would be appreciated.
&lt;BR /&gt;Thanks in Advance,
&lt;BR /&gt;CM</description>
      <pubDate>Thu, 16 Mar 2017 14:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304427#M76203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-16T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How does Java work in Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304428#M76204</link>
      <description>Hi,
&lt;BR /&gt;Move import to Advanced setting tab dedicated section.
&lt;BR /&gt;If you need to declare classes and methods, use routine. In tJava* components, just use plain Java.
&lt;BR /&gt;Regards,
&lt;BR /&gt;TRF</description>
      <pubDate>Thu, 16 Mar 2017 15:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304428#M76204</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-03-16T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How does Java work in Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304429#M76205</link>
      <description>&lt;P&gt;How to add classes and methods to the routine? please assist&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 21:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304429#M76205</guid>
      <dc:creator>Haresh</dc:creator>
      <dc:date>2020-09-23T21:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How does Java work in Talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304430#M76206</link>
      <description>&lt;P&gt;Can you be a bit more specific on what you are trying to achieve? Simply importing your predefined classes can happen by going to "Advanced  Settings" tab of the tJava component and adding them. If its a non-standard library, you may want to use tLibraryLoad component in pre-job or main job and then register the imports in the "Advanced Settings" tab.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-does-Java-work-in-Talend/m-p/2304430#M76206</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-09-30T15:53:59Z</dc:date>
    </item>
  </channel>
</rss>

