<?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: [resolved] New custom component does not recognise library (v.5.0.1) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352574#M118941</link>
    <description>Agreed - it does sound like a possible regression, though it doesn't occur in all cases as I have a custom component in 5.0.1, and my jar is being deployed from the component folder to lib/java automatically, and being recognised. 
&lt;BR /&gt;The 'Modules' view might give you more insight into what the Studio thinks is going on. It will show if the jar is installed or not. 
&lt;BR /&gt;If this issue is reliably reproducible (sounds like it is) then could you report it in JIRA?</description>
    <pubDate>Thu, 22 Dec 2011 17:15:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-22T17:15:38Z</dc:date>
    <item>
      <title>[resolved] New custom component does not recognise library (v.5.0.1)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352569#M118936</link>
      <description>Hi, 
&lt;BR /&gt;I'm creating a new component and included the api of the application I want to integrate to. None of the classes I reference can be resolved by the component. 
&lt;BR /&gt;I have read subaro's EXCELLENT tutorial, seen all Carl's youtube tutorials, Google'd all I could about the issues I'm experiencing, and find myself a little daft for not being able to achieve. 
&lt;BR /&gt;Windows 7 Professional SP1 
&lt;BR /&gt;Talend Open Studio for ESB 
&lt;BR /&gt;Version: 5.0.1 
&lt;BR /&gt;Build id: r74687-20111216-0210 
&lt;BR /&gt;java version "1.6.0_26" 
&lt;BR /&gt;Java(TM) SE Runtime Environment (build 1.6.0_26-b03) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;Error:&lt;/B&gt; 
&lt;BR /&gt; 
&lt;I&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: &lt;BR /&gt; com.bmc cannot be resolved to a type&lt;BR /&gt; com.bmc cannot be resolved to a type&lt;BR /&gt; com.bmc.arsys.api.Constants cannot be resolved to a variable&lt;/I&gt; 
&lt;BR /&gt; 
&lt;B&gt;tRemedyTest_begin.javajet&lt;/B&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;%@ jet &lt;BR /&gt;	imports="&lt;BR /&gt;		org.talend.core.model.process.INode &lt;BR /&gt;		org.talend.core.model.process.ElementParameterParser &lt;BR /&gt;		org.talend.core.model.metadata.IMetadataTable &lt;BR /&gt;		org.talend.core.model.metadata.IMetadataColumn &lt;BR /&gt;		org.talend.core.model.process.IConnection&lt;BR /&gt;		org.talend.core.model.process.IConnectionCategory&lt;BR /&gt;		org.talend.designer.codegen.config.CodeGeneratorArgument&lt;BR /&gt;		org.talend.core.model.metadata.types.JavaTypesManager&lt;BR /&gt;		org.talend.core.model.metadata.types.JavaType&lt;BR /&gt;		java.util.List &lt;BR /&gt;    	java.util.Map&lt;BR /&gt;	"&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;	CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;&lt;BR /&gt;	INode node = (INode)codeGenArgument.getArgument();&lt;BR /&gt;	String cid = node.getUniqueName(); &lt;BR /&gt;	String arserver = ElementParameterParser.getValue(node, "__ARSERVER__");&lt;BR /&gt;	String username = ElementParameterParser.getValue(node, "__USERNAME__");&lt;BR /&gt;	String password = ElementParameterParser.getValue(node, "__PASSWORD__");&lt;BR /&gt;	&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");&lt;BR /&gt;com.bmc.arsys.api.ARServerUser aruser_&amp;lt;%=cid%&amp;gt; = new com.bmc.arsys.api.ARServerUser("&amp;lt;%=username%&amp;gt;", "&amp;lt;%=password%&amp;gt;", "", "&amp;lt;%=arserver%&amp;gt;");&lt;BR /&gt;String sysname = com.bmc.arsys.api.Constants.AR_SYSTEM_NAME;&lt;BR /&gt;System.out.println(sysname);&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;B&gt;tRemedyTest_java.xml&lt;/B&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;COMPONENT&amp;gt;&lt;BR /&gt;	&amp;lt;HEADER AUTHOR="Me" RELEASE_DATE="20111220A" COMPATIBILITY="ALL"&lt;BR /&gt;			PLATEFORM="ALL" SERIAL="" VERSION="0.102" STATUS="ALPHA" STARTABLE="true"&amp;gt;&lt;BR /&gt;		&amp;lt;SIGNATURE/&amp;gt;&lt;BR /&gt;	&amp;lt;/HEADER&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;FAMILIES&amp;gt;&lt;BR /&gt;		&amp;lt;FAMILY&amp;gt;Application/BMC/Remedy&amp;lt;/FAMILY&amp;gt;&lt;BR /&gt;	&amp;lt;/FAMILIES&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;DOCUMENTATION&amp;gt;&lt;BR /&gt;		&amp;lt;URL&amp;gt;&amp;lt;/URL&amp;gt;&lt;BR /&gt;	&amp;lt;/DOCUMENTATION&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;CONNECTORS&amp;gt;&lt;BR /&gt;		&amp;lt;CONNECTOR CTYPE="FLOW"/&amp;gt;&lt;BR /&gt;	&amp;lt;/CONNECTORS&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;PARAMETERS&amp;gt;&lt;BR /&gt;		&amp;lt;PARAMETER NAME="ARSERVER" FIELD="TEXT" REQUIRED="true" NUM_ROW ="1" /&amp;gt;&lt;BR /&gt;    	&amp;lt;PARAMETER NAME="USERNAME" FIELD="TEXT" REQUIRED="true" NUM_ROW ="2" /&amp;gt;&lt;BR /&gt;		&amp;lt;PARAMETER NAME="PASSWORD" FIELD="TEXT" REQUIRED="true" NUM_ROW ="2" /&amp;gt;&lt;BR /&gt;		&amp;lt;PARAMETER NAME="AUTH" FIELD="TEXT" REQUIRED="false" NUM_ROW ="3" /&amp;gt;&lt;BR /&gt;		&amp;lt;PARAMETER NAME="SCHEMA" FIELD="SCHEMA_TYPE" REQUIRED="true" NUM_ROW="4"/&amp;gt;&lt;BR /&gt;	&amp;lt;/PARAMETERS&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;ADVANCED_PARAMETERS&amp;gt;&lt;BR /&gt;		&amp;lt;PARAMETER NAME="DESC" FIELD="CHECK" REQUIRED="false" NUM_ROW ="1" /&amp;gt;&lt;BR /&gt;    	&amp;lt;PARAMETER NAME="REPL" FIELD="CHECK" REQUIRED="false" NUM_ROW ="2" /&amp;gt;&lt;BR /&gt;    	&amp;lt;PARAMETER NAME="UND" FIELD="CHECK" REQUIRED="false" NUM_ROW ="3" /&amp;gt;&lt;BR /&gt;    	&amp;lt;PARAMETER NAME="LAB" FIELD="CHECK" REQUIRED="false" NUM_ROW ="4" /&amp;gt;&lt;BR /&gt;    	&amp;lt;PARAMETER NAME="PORT" FIELD="INT" REQUIRED="false" NUM_ROW ="5" /&amp;gt;&lt;BR /&gt;		&amp;lt;PARAMETER NAME="RPC" FIELD="INT" REQUIRED="false" NUM_ROW ="6" /&amp;gt;&lt;BR /&gt;	&amp;lt;/ADVANCED_PARAMETERS&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;CODEGENERATION&amp;gt;&lt;BR /&gt;		&amp;lt;IMPORTS&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="arapi7604" MODULE="arapi7604.jar" REQUIRED="true" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="log4j" MODULE="log4j-1.2.14.jar" REQUIRED="true" /&amp;gt;&lt;BR /&gt;		&amp;lt;/IMPORTS&amp;gt;&lt;BR /&gt;	&amp;lt;/CODEGENERATION&amp;gt;&lt;BR /&gt;	&amp;lt;RETURNS&amp;gt;&lt;BR /&gt;		&amp;lt;RETURN NAME="NB_LINE" TYPE="id_Integer" AVAILABILITY="AFTER"/&amp;gt;&lt;BR /&gt;	&amp;lt;/RETURNS&amp;gt;&lt;BR /&gt;&amp;lt;/COMPONENT&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;arapi7604.jar is in the component directory. 
&lt;BR /&gt; 
&lt;PRE&gt;public abstract interface com.bmc.arsys.api.Constants {&lt;BR /&gt;    public static final java.lang.String AR_SYSTEM_NAME = "Action Request System";&lt;BR /&gt;}&lt;BR /&gt;public class com.bmc.arsys.api.ARServerUser {&lt;BR /&gt;   public ARServerUser(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;Help would be greatly appreciated. 
&lt;BR /&gt;Kind regards, 
&lt;BR /&gt;Johan.</description>
      <pubDate>Sat, 16 Nov 2024 12:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352569#M118936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] New custom component does not recognise library (v.5.0.1)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352570#M118937</link>
      <description>Hi there, 
&lt;BR /&gt;You need to configure your component to declare the dependency on the jar file in an XML section something like this: 
&lt;BR /&gt;&amp;lt;CODEGENERATION&amp;gt; 
&lt;BR /&gt; &amp;lt;IMPORTS&amp;gt; 
&lt;BR /&gt; &amp;lt;IMPORT NAME="RequiredLib" MODULE="requiredlib-1.2.3.jar" REQUIRED="true"/&amp;gt; 
&lt;BR /&gt; &amp;lt;/IMPORTS&amp;gt; 
&lt;BR /&gt; &amp;lt;/CODEGENERATION&amp;gt; 
&lt;BR /&gt;The 3rd party jar(s) should also be included in the Studio as external libraries. There are two ways to do this - manually deploy the jar to the studios lib/java folder, or letting it happen automatically as part of your component deployment/distribution. 
&lt;BR /&gt;For internal use, bundling the jar with your component may be convenient, but if you want to share your component and the JAR is covered by a 3rd party license that prevents distribution then this may not be an option for you. In that case each component user would provide their own JARs. 
&lt;BR /&gt;You should find more discussion/detail on these points in this thread: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vClrgCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/creation-component-import-java-libraries/td-p/81368&lt;/A&gt; 
&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 22 Dec 2011 16:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352570#M118937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-22T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] New custom component does not recognise library (v.5.0.1)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352571#M118938</link>
      <description>Thank you irahman,
&lt;BR /&gt;as you can see from the code snippets I included, I have declared the jar file in the XML section, it is also included in my component directory.
&lt;BR /&gt;When I copy the jar to &amp;lt;Talend_home&amp;gt;/lib/java it is recognized, but it's not recognized from within my components directory (where the .xml and .javajet files are located). 
&lt;BR /&gt;So if I would want to share my component it will not run unless the jar files are duplicated to the &amp;lt;Talend_home&amp;gt;/lib/java directory.
&lt;BR /&gt;Kind regards,
&lt;BR /&gt;Johan Wasserman.</description>
      <pubDate>Thu, 22 Dec 2011 16:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352571#M118938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-22T16:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] New custom component does not recognise library (v.5.0.1)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352572#M118939</link>
      <description>Update: 
&lt;BR /&gt;When I quit Open Studio and start it up again, my code works. If I make any code changes and push the component to the Palette, my jar's aren't recognized, I have to quit Open Studio and start it up again to test the code changes. 
&lt;BR /&gt;This may be a bug in the version of Open Studio I have, I'll install an older version of Open Studio and see if that works. 
&lt;BR /&gt;Kind regards, 
&lt;BR /&gt;Johan Wasserman.</description>
      <pubDate>Thu, 22 Dec 2011 16:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352572#M118939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-22T16:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] New custom component does not recognise library (v.5.0.1)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352573#M118940</link>
      <description>Works in Open Studio Version: 4.2.3 with the jars only in my component directory (not in &amp;lt;Talend_home&amp;gt;/lib/java).&lt;BR /&gt;Suggest this may be a bug in 5.0.1&lt;BR /&gt;Kind regards,&lt;BR /&gt;Johan.</description>
      <pubDate>Thu, 22 Dec 2011 17:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352573#M118940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-22T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] New custom component does not recognise library (v.5.0.1)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352574#M118941</link>
      <description>Agreed - it does sound like a possible regression, though it doesn't occur in all cases as I have a custom component in 5.0.1, and my jar is being deployed from the component folder to lib/java automatically, and being recognised. 
&lt;BR /&gt;The 'Modules' view might give you more insight into what the Studio thinks is going on. It will show if the jar is installed or not. 
&lt;BR /&gt;If this issue is reliably reproducible (sounds like it is) then could you report it in JIRA?</description>
      <pubDate>Thu, 22 Dec 2011 17:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-New-custom-component-does-not-recognise-library-v-5-0-1/m-p/2352574#M118941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-22T17:15:38Z</dc:date>
    </item>
  </channel>
</rss>

