Failed to build job

 Overview

Prior to v6.0.0, a JRE was sufficient to build a Job, but since version 6.0.0, Talend Studio integrates with Maven and now requires a JDK to be installed. This article details one possible cause for a Job to fail building and provides the corresponding solution.  A number of reasons can cause a job building to fail. In this article, only the JDK installation and setting related error is detailed.

 

Environment

This article is relevant for all Talend products v6.0.0 or higher.

Description

The integration of Maven in Talend Studio v6.0.0 requires a JDK to build Jobs. Therefore a JRE is no longer sufficient to build Job completely. The following error may display in the Error.logview when building job using a JRE instead of a JDK. 

!ENTRY org.talend.platform.logging 4 0 2015-09-10 16:17:02.257
!MESSAGE 2015-09-10 16:17:02,254 ERROR org.talend.commons.exception.CommonExceptionHandler  - [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile)
on project routines: Fatal error compiling: tools.jar not found: C:\Program
Files\Java\jre7\..\lib\tools.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]

Resolution

Check your JDK installation and settings from the following aspects:

 Related topics

If the solution does not fix your issue, check the related topics listed below or create a topic in Talend Forum or create a JIRA issue on bugTracker with detailed error information.

Version History
Revision #:
1 of 1
Last update:
‎04-13-2017 08:54 PM
Updated by:
 
Labels (1)
Contributors