Talend throwing "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"

Five Stars BRM
Five Stars

Talend throwing "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"

I have been having intermittent problems with Talend (6.4.1 on Windows 10) throwing this error.  I was having problems a couple of days ago and so, following the guidance some things I found by searching, I set the JAVA_HOME environment variable to  C:\Program Files\Java\jdk1.8.0_151\bin\javaw.exe and also set a value of -vm C:\Program Files\Java\jdk1.8.0_151\bin\javaw.exe in eclipse.ini.  This seemed to fix the problem this morning. Now this afternoon I am getting this error again.  I haven't changed anything about the jobs where I am getting the errors.  What is going on?  Where do I even begin to start looking?

 

A few other things things that I have read in other posts. 

  1. I am running the job from the designer just as earlier this morning when all of this was working. 
  2. I have tried a clean install of TOS and then setting up a simple job as suggested in this post.  That is still giving the same error.
  3. The installation path for my main installation is C:\Talend\TOS_DI-20170623_1246-V6.4.1, the workspace path for this copy is E:\Brian MacDonald\Documents\Data_Integration\Talend\workspace (note the space)
  4. The installation path for my "clean install" version is C:\TOS\TOS_DI-20170623_1246-V6.4.1 and the workspace path for this version is C:\TOS\TOS_DI-20170623_1246-V6.4.1\workspace (the default - no spaces)

 

Any help would be appreciated.


Accepted Solutions
Five Stars BRM
Five Stars

Re: Talend throwing "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"

So this what appears to have worked for me.

I had a couple of different Java versions installed on my system.  So first I uninstalled them all. Then I reinstalled the one i wanted to use (which in my case is 8.0_151).

Then:

  1. Goto Preferences >> Java >> Installed JRE's
  2. Click Add and browse to \Program Files\Java\jdk1.8.0_151
    1. In my case the "Location" variable for the jre did not change but the "Name" variable for the jre in this dialog box did.  I am not sure the impact of this but it is the only thing that appears to have changed.  Who knows, maybe "refreshing" this variable is the key.
  3. Click OK and then set the newly added jre as the default.  
  4. Click OK, say a small prayer and run a job.

Note that it appears I will have to do these steps for all projects.  I made this fix and it worked for a job that was throwing an error.  Then I switched projects and got the error again.  I did steps 1-4 in the new project and all was good.

 

 

 


All Replies
Five Stars BRM
Five Stars

Re: Talend throwing "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"

So this what appears to have worked for me.

I had a couple of different Java versions installed on my system.  So first I uninstalled them all. Then I reinstalled the one i wanted to use (which in my case is 8.0_151).

Then:

  1. Goto Preferences >> Java >> Installed JRE's
  2. Click Add and browse to \Program Files\Java\jdk1.8.0_151
    1. In my case the "Location" variable for the jre did not change but the "Name" variable for the jre in this dialog box did.  I am not sure the impact of this but it is the only thing that appears to have changed.  Who knows, maybe "refreshing" this variable is the key.
  3. Click OK and then set the newly added jre as the default.  
  4. Click OK, say a small prayer and run a job.

Note that it appears I will have to do these steps for all projects.  I made this fix and it worked for a job that was throwing an error.  Then I switched projects and got the error again.  I did steps 1-4 in the new project and all was good.

 

 

 

Moderator

Re: Talend throwing "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"

Hello,

Thanks for sharing your use case with us on forum. And ensure your JDK bin is included in your PATH environment variable and is being reached.

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.
Five Stars

Re: Talend throwing "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"

Thanks a lot BRM, *****
It Solved my Issue Smiley Happy