CommandLine error: "cannot be resolved to a type" or similar error

Talend Version          6.0.1


Class or method "cannot be resolved to a type" error when running Jobs in the CommandLine.
Additional Versions 6.1.1
Key words commandline
Product Talend Data Integration
Component CommandLine
Article Type Configuration
Problem Description

You may receive an error like this or similar to it:

Detail Message: javax.mail.Transport cannot be resolved to a type


This and other errors may be caused by JVM incompatibility, and usually means your jars are not being synced up correctly. Make sure your JVM setup is similar to Studio.

Problem root cause The root cause of the issue can reside in the fact that you have not configured your User Libraries in TAC to read from SVN, or have kept it at the default Nexus, but without any properties or credentials. Incorrect or invalid credentials prevent loading of the libraries into the .m2 folder's local repository.
Solution or Workaround Setting up the User Libraries in TAC > Configuration > User Libraries normally resolves the issue.
JIRA ticket number  
Version history
Revision #:
5 of 5
Last update:
‎12-12-2017 05:38 PM
Updated by: