Build option is not working in Talend Job

3.4k views Asked by At

I'm using Talend ESB 6.3 and creating jobs. I tried to use the build option in working job, but it is not working even it is not showing any error.

enter image description here

The above "FileCopyJob" right clicked & selected build option.

enter image description here

then clicked "Finish" button, building successfully & checked in file path. There is no file in the saved path. did i missed anything in this process? How can i resolve the issue?

Here attached the JRE installed version in my machine. enter image description here

4

There are 4 answers

1
Théo Capdet On

You need to know when you run a job, Talend compile it.

So you have two possibilities :

  • Build job : Create a zip of a job précompiled in order for example to import it in the Talend Administration Console (TAC) in order to run it. So when you build it you need a job without compilation error else the build won't work.

  • Export Job : Create a Zip but not compiled. You can use this option in order to import the job in another Talend project or another computer if you have free version of Talend and you can't be more than one on a project.

If you choose "export" you need to select "Select archive File" and select all the thing you want to export.

Moreover they seem have the same probleem than you and some have solved : Here

Maybe your java install

0
tobi6 On

This is the case if you have only installed and set up to use a JRE but not a JDK.

Go to

  • Window
  • Preferences
  • Java
  • Installed JREs

and make sure that no JRE is selected or even available in that list and only use to a JDK. I can see in your screenshot that a JDK is selected but make sure again it is a JDK.

Source

0
user7424685 On

I had the same problem. My solution : if you have your talend installed in a folder with space like this one "Talend Open Studio 6.3" : remove the space like that "TOS_6.3" it worked for me!!

0
ciroBorrelli On

This, and many other building problems in Talend O.S. 6.x (both ESB and DI products) are related with the <source> and <target> values, in the pom.xml of the .Java project, within the Talend workspace folder.

Try to set them to the JDK/JRE You configured in Talend properties. By example, if You configured Talend product to start and to build with JDK/JRE v 1.8, You should set the mentioned tags as follows:

<plugin>
     <artifactId>maven-compiler-plugin</artifactId>
     <version>2.5.1</version>
     <configuration>
       <source>1.8</source>
       <target>1.8</target>
     </configuration>
</plugin>

Moreover, remember that when a Talend product builds (generates Java sources and compiles 'em) a Job, it's using Maven (behind the scenes) with the settings as defined in the following file:

[Talend_install_dir]/configuration/maven_user_settings.xml