Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Are you sure this error message is relating to this import statement?
Where are you seeing the message? Code View?
Anonymous
Not applicable
Author

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. 
Anonymous
Not applicable
Author

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.