Job works in Studio (6.4.1) but fails from windows cmd line.

Four Stars

Job works in Studio (6.4.1) but fails from windows cmd line.

Hi, I have a Talend job which uses tJDBCConnection that works fine in Studio. When I build it and run the windows executable from command line, it fails with the below error. Seems to be some compatibility issue with java. Could someone guide how to troubleshoot the issue. Appreciate your help.



Establishing JDBC connection to the source database....
[FATAL]: imas_datalake.tretrievedatadict_0_1.tRetrieveDataDict - tJDBCConnection_1 null
at oracle.jdbc.driver.T4CConnection.connect(
at oracle.jdbc.driver.T4CConnection.logon(
at oracle.jdbc.driver.PhysicalConnection.<init>(
at oracle.jdbc.driver.T4CConnection.<init>(
at oracle.jdbc.driver.T4CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at routines.system.SharedDBConnectionLog4j.getConnection(
at routines.system.SharedDBConnectionLog4j.getDBConnection(
at imas_datalake.tretrievedatadict_0_1.tRetrieveDataDict.tJDBCConnection_1Process(
at imas_datalake.tretrievedatadict_0_1.tRetrieveDataDict.tFileInputDelimited_1Process(


Some related settings:

talend_job_settings.jpgTalend Job Settings and java version

Ten Stars

Re: Job works in Studio (6.4.1) but fails from windows cmd line.

A suggestion to look after:
Make sure windows points to the jdk and not the JRE, environment vars :

Althoug do you point out to use context variables? when you build your job (to run it outside of Talend) it uses your default context. Make sure your context vars are set properly.
To mee it doesn't look like a java version issue.


Re: Job works in Studio (6.4.1) but fails from windows cmd line.


Please make sure the export is working well.

Before building your job, could you please go to Window > Preferences, select Talend > Import/Export, and then select the "Add classpath jar in exported jobs" check box to wrap the Jars in a classpath.jar file added to the built Job?

Best regards


Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.