<?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 How to call a java class.method from within Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-a-java-class-method-from-within-Talend/m-p/2289175#M62579</link>
    <description>Hello,
&lt;BR /&gt;I've imported into Routines, a java class that was created outside of Talend. Here's what it looks like:
&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;BR /&gt;package routines;
&lt;BR /&gt;imports....;
&lt;BR /&gt;
&lt;BR /&gt;public class PutTokenBI {
&lt;BR /&gt;
&lt;BR /&gt; public static void main(String args[])
&lt;BR /&gt; {
&lt;BR /&gt; new PutTokenBI();
&lt;BR /&gt; System.exit(0);
&lt;BR /&gt; }
&lt;BR /&gt; public PutTokenBI() 
&lt;BR /&gt; {
&lt;BR /&gt; PreparedStatement insertURL = null;
&lt;BR /&gt; Statement stmt = null;
&lt;BR /&gt; try
&lt;BR /&gt; {
&lt;BR /&gt; .... code....
&lt;BR /&gt; } 
&lt;BR /&gt; }
&lt;BR /&gt; }
&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;BR /&gt;I'm having trouble calling this class.method (PutTokenBI / PutTokenBI()) from within tjava. I expected that something like this would work:
&lt;BR /&gt;PutTokenBI PutTokenBIobj = new PutTokenBI();
&lt;BR /&gt;PutTokenBIobj.PutTokenBI();
&lt;BR /&gt;Didn't work. 
&lt;BR /&gt;Also, should the class have the constructor (as above) or should this be commented out since it's being called from the Routines?
&lt;BR /&gt;Thanks a lot...</description>
    <pubDate>Mon, 21 May 2012 22:23:19 GMT</pubDate>
    <dc:creator>willm1</dc:creator>
    <dc:date>2012-05-21T22:23:19Z</dc:date>
    <item>
      <title>How to call a java class.method from within Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-a-java-class-method-from-within-Talend/m-p/2289175#M62579</link>
      <description>Hello,
&lt;BR /&gt;I've imported into Routines, a java class that was created outside of Talend. Here's what it looks like:
&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;BR /&gt;package routines;
&lt;BR /&gt;imports....;
&lt;BR /&gt;
&lt;BR /&gt;public class PutTokenBI {
&lt;BR /&gt;
&lt;BR /&gt; public static void main(String args[])
&lt;BR /&gt; {
&lt;BR /&gt; new PutTokenBI();
&lt;BR /&gt; System.exit(0);
&lt;BR /&gt; }
&lt;BR /&gt; public PutTokenBI() 
&lt;BR /&gt; {
&lt;BR /&gt; PreparedStatement insertURL = null;
&lt;BR /&gt; Statement stmt = null;
&lt;BR /&gt; try
&lt;BR /&gt; {
&lt;BR /&gt; .... code....
&lt;BR /&gt; } 
&lt;BR /&gt; }
&lt;BR /&gt; }
&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;BR /&gt;I'm having trouble calling this class.method (PutTokenBI / PutTokenBI()) from within tjava. I expected that something like this would work:
&lt;BR /&gt;PutTokenBI PutTokenBIobj = new PutTokenBI();
&lt;BR /&gt;PutTokenBIobj.PutTokenBI();
&lt;BR /&gt;Didn't work. 
&lt;BR /&gt;Also, should the class have the constructor (as above) or should this be commented out since it's being called from the Routines?
&lt;BR /&gt;Thanks a lot...</description>
      <pubDate>Mon, 21 May 2012 22:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-call-a-java-class-method-from-within-Talend/m-p/2289175#M62579</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2012-05-21T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a java class.method from within Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-a-java-class-method-from-within-Talend/m-p/2289176#M62580</link>
      <description>Hi&lt;BR /&gt;This java class should be a jar file first.&lt;BR /&gt;Right click on this custom routine and select "Edit routine libraries" to browser this jar file.&lt;BR /&gt;Then use "import ..." at the top of custom routine.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 22 May 2012 02:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-call-a-java-class-method-from-within-Talend/m-p/2289176#M62580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-22T02:59:03Z</dc:date>
    </item>
  </channel>
</rss>

