How to run a job using its jar? "No main manifest attribute"

Six Stars

How to run a job using its jar? "No main manifest attribute"

Hi,

I've build my job into a zip file. Once extracted, here is the files that I got : 

files.PNG

It works when I run the .bat file, but when I try to run directly the jar file with this command line : "java -jar myjob_0_1.jar", I have this message : 

no main manifest attribute in myjob_0_1.jar

How can I make this works?

 

 

 

Moderator

Re: How to run a job using its jar? "No main manifest attribute"

Hello,

After you export the job script, unzip it and click the .bat file (not the .jar file) to run the job out of TOS. Did you want to develop a program in eclipse who call your talend job?

Best regards

Sabrina

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

Re: How to run a job using its jar? "No main manifest attribute"

But If the jar file needs to be run on any linux based server what should be the process.

I have created a sample job just like above and extracted it in zipped folder.

When I unzip it , I have got jar file inside.

 

To run the jar file inside linux server I have used below command.

java -jar hdfs_03_keytab_connection_0_1.jar

 

It is giving me below error.

no main manifest attribute, in hdfs_03_keytab_connection_0_1.jar

 

 

Please confirm , how can I run the jar file on linux server.


@xdshi wrote:

Hello,

After you export the job script, unzip it and click the .bat file (not the .jar file) to run the job out of TOS. Did you want to develop a program in eclipse who call your talend job?

Best regards

Sabrina


 

 

 

 

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now