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

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

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 : 

0683p000009LyZw.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?

 

 

 

Labels (2)
2 Replies
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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