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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Rohan2
Contributor
Contributor

Error while running the job from Terminal

I created a job in Talend and passed a context variable as a parameter and the job ran successfully. Then I build the job to get all the executable files and try to run the job using terminal "sh run_entire_pipelien_run.sh" which is a simple job which calculates the based on the parameter that we pass. But in terminal, I get this error:

Error: Could not find or load main class Solutions.Talend.run_entire_pipeline_0.1.run_entire_pipeline....lib

Java version: echo $JAVA_HOME

/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home

Talend version: 7.3.1

Goal is to run the .sh file from terminal

Labels (2)
4 Replies
Anonymous
Not applicable

Hi

The error indicates the required jar files are missing. Do you select all the default settings when building the job?

 

Regards

Shong

Rohan2
Contributor
Contributor
Author

Hey Shong,

When I build the job, I built it with default settings. 0695b00000EaKl5AAF.png

Anonymous
Not applicable

Hi Rohan,

I have no idea why you have this error. Basically, it is a very simple process, build the job with default settings, extract the zip file, CD into the directory where the job script file is located, and execute the job script file. Maybe need to check if you are using compatible Operating System.

 

Regards

Shong

Rohan2
Contributor
Contributor
Author

I ran the same file with .bat extension in windows machine and it ran successfully. Is it something related java class path? or JAVA_HOME variable ? I am a bit confused here. Any suggestions would be appreciated.