One Star

[resolved] How to create a runnable jar

Hello guys,
Can somebody tell me step by step how to create a runnable .jar file?
I'm not understanding whats the 'launch configuration' =/
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] How to create a runnable jar

You need just to export you job script.
A simple right clik on your job and you can create your runnable jar.
The export create a zip which include batch for launch your jar.
8 REPLIES
One Star

Re: [resolved] How to create a runnable jar

You need just to export you job script.
A simple right clik on your job and you can create your runnable jar.
The export create a zip which include batch for launch your jar.
One Star

Re: [resolved] How to create a runnable jar

Thank you so much man!
It worked. =)
One Star

Re: [resolved] How to create a runnable jar

I have same problem because i not understand how and where create 'launch configuration' =/.
An other problem is: why in jar create whits export job is automatically insert an Exit? when i create a bat that contain 2 bat create with export job the first start and run but the second do not start.
One Star

Re: [resolved] How to create a runnable jar

You can start more than one Job with "start /wait" in your custom .bat :
In startAllTosJob.bat :
start /wait c:\temp\TosJob1_01_run.bat
start /wait c:\temp\TosJob2_01_run.bat
...
Hope that helps.
One Star

Re: [resolved] How to create a runnable jar

Thank
I testing and is beatiful solution
One Star

Re: [resolved] How to create a runnable jar

If the proper way to create a runnable jar is by right clicking on the job, what purpose does the menu option File -> Export --> Java --> Runnable Jar File serve?
One Star

Re: [resolved] How to create a runnable jar

I right click on the job, but don't see the option to create a runnable jar, just and export to zip. I'm using TOS 4.2.0
One Star

Re: [resolved] How to create a runnable jar

Actually the "export to zip" is probably the solution you need.
Supposing your job name is "foo". You will find in the foo.zip a folder named "foo".
In this folder there should be two folder one named "lib" the other "foo". In this second "foo" folder is located a runnable jar and an associate .bat file.
FYI, i'm using Talend 4.2.2 and like you, i don"t see the point of the "option File -> Export --> Java --> Runnable Jar File"
Hope my information will help you.