Four Stars

Could not find or load main class in talend

Hello, i get error : could not find or load main class when i execute job in Talend. Below are the details about talend and java installed. It used to work in my old system, however, I can't recall java version but Talend version was same. I have checked all the discussions revolving around this issue, but nothing worked. Please reply if anyone knows how to fix it. Talend V6.2 jdk1.8.0_131
11 REPLIES
Four Stars

Re: Could not find or load main class in talend

;Seems to be a case of corrupt workspace.

Try building a fresh workspace and import jobs there.

Moderator

Re: Could not find or load main class in talend

Hi,

Have you already checked the installation path to your workspace? Any space?

Please follows the steps as below to restore the items.
1. Back up the workspace.
2. Delete the workspace and restart the studio.
3. Import all items from the backup of workspace done in step1.

Let us know if it is Ok with you.

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

Re: Could not find or load main class in talend

Thanks for the replies. However, there was no workspace issue. The issue was of java version mismatch. I think Talend doesn't support latest java version i.e java1.8_131. I downgraded java to update 77 and it worked just fine. Hope this helps someone else.
Four Stars

Re: Could not find or load main class in talend

Same issue here, but the downgrade of Java was not the solution.

Any other ideas?

Thanks!

Moderator

Re: Could not find or load main class in talend

Hi schaeffi112,

What's JDK version you are using? Could you please give us more information about your current situation?

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

Re: Could not find or load main class in talend

Hi Sabrina,

as recommended, I switched back to javac 1.8.0_77

Which variables do I have to define? At the moment, I have

  • CLASSPATH in C:\Program Files\Java\jdk1.8.0_77\bin
  • JAVA_HOME in C:\Program Files\Java\jdk1.8.0_77
  • PATH in C:\Program Files\Java\jdk1.8.0_77\bin

Anything I have forgotten?

 

Thank you

Christian

Moderator

Re: Could not find or load main class in talend

Hello,

Could you please try to type java -version in cmd to see if your java environment is set correctly? Are you using oracle JDK 1.8?

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

Re: Could not find or load main class in talend

Hi Sabrina,

Yes, I took the download from Oracle.

 

java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

 

Best regards

Christian

Employee

Re: Could not find or load main class in talend

Install the studio in a path other than Program Files. Try to install the studio in C:\Talend\Studio.

Put your workspace also in a folder without a space in the path like C:\Talend\workspace
Moderator

Re: Could not find or load main class in talend

Hi,

Please install product in a short path without any special characters, such as blank space.
You cannot change the installation path but you can re-install talend production.

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

Re: Could not find or load main class in talend

Hi,

 

sorry, that does not fix it - but I imported the job from the old workspace. Should I set it new?

 

Best regards

Christian