Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am writing a component for TOS 6.4.1 in which I want to use ARX Anonymasiation (http://arx.deidentifier.org/). I downloaded the jar from the homepage and importet it to my component (see the XML) and added it to the Java Build Path in TOS.
<IMPORTS>
<IMPORT MODULE="libarx-3.6.0.jar" NAME="libarx" REQUIRED="true"/>
</IMPORTS>
Now I want to use one of the classes.
In the _begin.javajet file I write
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 org.deidentifier.arx.ARXAnonymizer " %> <% CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument; INode node = (INode)codeGenArgument.getArgument(); String cid = node.getUniqueName(); org.deidentifier.arx.ARXAnonymizer anonymizer = new org.deidentifier.arx.ARXAnonymizer.ARXAnonymizer(); %>
but I keep getting an error message "The import org.deidentifier cannot be resolved".
Thanks for your help.
Hello,
Have you put your jar file in your custom component folder? Can you see it from modules view?
Best regards
Sabrina
Hello,
Have you put your jar file in your custom component folder? Can you see it from modules view?
Best regards
Sabrina
Hello,
Have you put your jar file in your custom component folder? Can you see it from modules view?
Best regards
Sabrina
Hi,
@miriull wrote:
Hallo,
Yes the Jar is in the component folder. When I open the component Designer I can see it.
When I loaded the component for the first time it told me I need to install a required jar and I installed it with the component view of my Job.
Thank you for your reply.
You are still getting an error message "The import org.deidentifier cannot be resolved"?
Best regards
Sabrina
Hey,
sadly I do.
Do you have any idea why I get this error message?
Thanks,
Miri
Hello,
in the meantime I added the URLPath to the XML.:
<IMPORTS>
<IMPORT MODULE="libarx-3.6.0.jar" NAME="libarx" REQUIRED="true" UrlPath="D:\Program Files\TOS_DI-20170623_1246-V6.4.1\plugins\org.talend.libraries.custom_6.4.1.20170623_1246\lib\libarx-3.6.0.jar"/>
</IMPORTS>
But that does not help, either
Greetings,
Miri