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.
I already tried more than one location for the as as well as the whole component.
The import with the tLibraryLoad only works if I write my code in tJavaFlex. But the import of the jar for the component doesn't seem to work. Furthermore I cannot connect tLibraryLoad with my component.
I also think that this is not the best solution: I want to offer the functionality of arx within this component. When the user has to load the Jar in an external component he doesn't need the extra component any more..
Greetings,
Miri
Even when I use tLibraryLoad I get the error message. My Job looks like that
(File Input is a simple example csv for the analysis)
I copied the component to a different direction and changed the component path of TOS to this folder but that doesn't help either.
Could there be a mistake in the import in the javajet?
It doesn't help.
The line
org.deidentifier.arx.ARXAnonymizer anonymizer = new org.deidentifier.arx.ARXAnonymizer();
gives 2 errors: 2 times "org.deidentifier cannot be resolved to a type"
It is the same job as the Screenshot you can see, so yes