How to import external .jar libs into Talend custom component

One Star

How to import external .jar libs into Talend custom component

 
Community Manager

Re: How to import external .jar libs into Talend custom component

Hi 
There is an option to import external libraries in the second page when creating a new component. see

Afterwards, the jar file should be loaded automatically to the component folder.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to import external .jar libs into Talend custom component

 
One Star

Re: How to import external .jar libs into Talend custom component

 
One Star

Re: How to import external .jar libs into Talend custom component

I can't post link because I have not more 10 messages on forum so I add space here : ht tp s://www.dropbox.com/s/1je17q003saw4b5/soa-model-core-1.4.1.4.jar?dl=0
And here you have my parser : ht t p://www.membrane-soa.org/soa-model-doc/1.4/java-api/parse-wsdl-java-api.htm
Thanks and sorry for this.
One Star

Re: How to import external .jar libs into Talend custom component

 
Community Manager

Re: How to import external .jar libs into Talend custom component

Hi
I am not able to access your jar file, can you please email it to me for testing. 
In addition,  here is a KB article about how to create a custom component by hands without component designer, you can try this way.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to import external .jar libs into Talend custom component

 
One Star

Re: How to import external .jar libs into Talend custom component

 
Community Manager

Re: How to import external .jar libs into Talend custom component

<%@ jet
imports="
org.talend.core.model.process.INode 
org.talend.core.model.process.ElementParameterParser 
org.talend.core.model.metadata.IMetadataTable 
org.talend.core.model.metadata.IMetadataColumn 
org.talend.core.model.process.IConnection
org.talend.core.model.process.IConnectionCategory
org.talend.designer.codegen.config.CodeGeneratorArgument
org.talend.core.model.metadata.types.JavaTypesManager
org.talend.core.model.metadata.types.JavaType
java.util.List 
java.util.Map
"
%>

You don't import the class in the import part before you use it.
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to import external .jar libs into Talend custom component

Hello,
I already know how to import external library at the time of starting the new component. But I already started too design a component. And now I need the external library in between.And now I am unable  to import. Will u plz tell me how to import it for already started component.
Sixteen Stars

Re: How to import external .jar libs into Talend custom component

Look at the {ComponentName}_java.xml file and find the "CODEGENERATION" element at the bottom. The import needs to go here. I have included the CODEGENERATION section of one I am currently working on below....
<CODEGENERATION>
<IMPORTS>
<IMPORT REQUIRED="true" NAME="DataSetUtilities" MODULE="DataSetUtilities.jar"/>
<IMPORT REQUIRED="true" NAME="guava" MODULE="guava-18.0.jar"/>
</IMPORTS>
</CODEGENERATION> 
You then need to make sure that your Jars are included inside the same folder as this file. Ensure that classpaths and Jar dependencies are OK as well.
One Star

Re: How to import external .jar libs into Talend custom component

Thnx