From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

importing java jar file

Highlighted
Four Stars

importing java jar file

Hi,
I am using tJava component in the job. Since our java code is related to xml parser, we added 
import javax.xml.transform.dom.*;
this import statement added in Advance settings in tJava component. 
But we are getting error msg "Syntax error on token "Invalid Character", delete this token"
So, we downloaded related jar file and added it in talend in the following ways
window->show view->talend->modules
Imported jar file in modules section, but no use. Still it's showing the same error.
Even I tried tLibraryLoad component, no change in the error.
Can you please let me know what are the changes to be done to make sure code can access external jar files.
Thanks

Highlighted
Five Stars

Re: importing java jar file

Are you sure this error message is relating to this import statement?
Where are you seeing the message? Code View?
Highlighted
Four Stars

Re: importing java jar file

Hi,
we removed complete java code and placed only this import statement to know whether the issue is because of this or not.
So, we are getting the issue with that import statement. Even if we code window, there also error is highlighting at Import statement only. Please let me know if you see this issue is because of any other.(but we didn't write any code, except default statement String foo="bar").
Please suggest solutions.
Thanks. 
Highlighted
Seventeen Stars

Re: importing java jar file

Hi jayachandra456
we cannot help if you do  not show us what you have done. Most of the text what you are writing is not clear.
Example: we removed complete java code and placed only this import statement to know whether the issue is because of this or not.
This is actually nonsense. You cannot write an import statement just like normal java code. This does not make sense.
Your first error message looks like there are a malformed import statement. If you really expect help, show us what you have done.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog