Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (2)
20 Replies
DilipSonar
Contributor
Contributor

;Seems to be a case of corrupt workspace.

Try building a fresh workspace and import jobs there.

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

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

Any other ideas?

Thanks!

Anonymous
Not applicable
Author

Hi

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

Best regards

Sabrina

 

 

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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