[resolved] Tutorial Data Mapper for Java object mapping

Highlighted
Not applicable

[resolved] Tutorial Data Mapper for Java object mapping

Hi,
I'm watching this tutorial:
https://www.youtube.com/watch?v=S1MhbYaaF5o
At 1:07 minute, we have to add an external jar odtapi-3.3.0.jar (I think the one that contains package com.mycompany.odt that is declared in some java class but missing). I don't have such a jar and I think it is normal, because it was renamed since this video. But I cannot find a jar that would contain the package com.mycompany.odt...
Where can I find this jar ?
Thanks for your help.
Eric

Accepted Solutions
Not applicable

Re: [resolved] Tutorial Data Mapper for Java object mapping

I didn't use the right api jar file... The right one is tdm-api-<version>.jar or tdm-camel-<version>.jar (According to the version). 
With the right one it works fine.
Eric

All Replies
Not applicable

Re: [resolved] Tutorial Data Mapper for Java object mapping

I found the relevant jar... It is now org.talend.transform.runtime.api_*.jar
But I run into a new problem... At minute 5:42, we run the class file AddJavaObjectSample.java to create a test invoice java file, but I get this error and have no idea how to fix that:
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.mycompany.odt.AddJavaObjectSample.main(AddJavaObjectSample.java:34)
Should I adjust something in a manifest file ?
Any suggestion ?
I uploaded the class file.

Eric
AddJavaObjectSample.java.txt.txt
Not applicable

Re: [resolved] Tutorial Data Mapper for Java object mapping

I didn't use the right api jar file... The right one is tdm-api-<version>.jar or tdm-camel-<version>.jar (According to the version). 
With the right one it works fine.
Eric

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.