One Star

[resolved] TalendJob cannot be resolved to a type

Hi all
i'm writing my first Talend job but, when i build the job, I have several compiling errors like the following one:
org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "dsm" has a compile errors, please fix and export again.
Error Line: 58
Detail Message: TalendJob cannot be resolved to a type
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
 at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:209)
 at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:158)
or Detail Message: ResumeUtil cannot be resolved to a type
----------------------------------
My configuration is:
OS: Windows 10 64-bit
JDK: 1.8.0_111 64-bit
Compiler compliance level: 1.7
Below you find some lines from the Installation details:
*** Date: domenica 8 gennaio 2017 13:06:58 Ora standard dell'Europa centrale
*** Platform Details:
*** System properties:
ReadOnlyUser=false
USE_BROWSER=true
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi
awt.toolkit=sun.awt.windows.WToolkit
clearPersistedState=true
default.update.site.url=
eclipse.commands=-os
win32
-ws
win32
-arch
x86_64
-showsplash
-launcher
C:\Archivio Programmi\Talend\TOS_DI-20161026_1219-V6.3.0\TOS_DI-win-x86_64.exe
-name
TOS_DI-win-x86_64
--launcher.library
C:\Archivio Programmi\Talend\TOS_DI-20161026_1219-V6.3.0\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326\eclipse_1603.dll
-startup
C:\Archivio Programmi\Talend\TOS_DI-20161026_1219-V6.3.0\plugins\org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.overrideVmargs
-data
C:\\_Dati\\BIRT_SISM\\Attività\\BI\\Dati\\ETL\\SISM
-launcher
C:\Archivio Programmi\Talend\TOS_DI-20161026_1219-V6.3.0\TOS_DI-win-x86_64.exe
-vm
C:\Program Files\Java\jdk1.8.0_111\bin\..\jre\bin\server\jvm.dll
eclipse.home.location=file:/C:/Archivio Programmi/Talend/TOS_DI-20161026_1219-V6.3.0/
eclipse.launcher=C:\Archivio Programmi\Talend\TOS_DI-20161026_1219-V6.3.0\TOS_DI-win-x86_64.exe
eclipse.launcher.name=TOS_DI-win-x86_64
Any suggestion will be appreciated.
Best regards.
Pasquale
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] TalendJob cannot be resolved to a type

I fixed my problem.
I tried to work by using a project created, by a college of mine, by using Talend DI V5.6 without importing it.
I started again by a new installation and imported the previous project: now I can create and compile without errors the old jobs and the new one.
Best regards.
Pasquale
 
4 REPLIES
Moderator

Re: [resolved] TalendJob cannot be resolved to a type

Hi,
Does this issue repro on all your jobs or a specific job? Could you please check your "Code" tab in your job? There will be your compile error highlighted in red line.
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.
One Star

Re: [resolved] TalendJob cannot be resolved to a type

All my jobs have the same problem.
the first compiling errors I see in the code tab are the following:

- the declared package "sism_2.dsm_0_1" does not match the expected package "main.java.sism_2.dsm_0_1"
- the following import cannot resolved:
import routines.Numeric;
import routines.DataOperation;
import routines.TalendDataGenerator;
import routines.TalendString;
import routines.StringHandling;
import routines.Relational;
import routines.TalendDate;
import routines.Mathematical;
import routines.system.api.*;

Note that the "import routines.system.*;" IS NOT marked as an error.

I'm using Talend DI version 6.3.0.
One Star

Re: [resolved] TalendJob cannot be resolved to a type

I fixed my problem.
I tried to work by using a project created, by a college of mine, by using Talend DI V5.6 without importing it.
I started again by a new installation and imported the previous project: now I can create and compile without errors the old jobs and the new one.
Best regards.
Pasquale
 
Moderator

Re: [resolved] TalendJob cannot be resolved to a type

Hi Pasquale,
Great your issue has been fixed. Could you please mark this topic as resolved?
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.