Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error: Could not find or load main class - Talend 6

Hi - I am getting the below error when i try to run my jobs in Talend 6 that I have installed on my machine.
Error: Could not find or load main class 

Upon looking at the resolutions for this error from previous posts. I have done the following but it didnt help
1. Installed the latest JDK and JRE (Java 😎
2. Made sure i dont have any spaces in my workspace directory path.

Can you please let me know what might be causing this issue? I am using Max OSX Yosemite.
Additional details:

Version : TOS_MDM-Studio-20150908_1633-V6.0.1
Both the Studio and Server are installed on default port "localhost:8080"
Below are the Server details, Java Version & Preferences on Talend.

Thanks,
0683p000009MBxq.png 0683p000009MBy4.png 0683p000009MBy9.png
Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hi,
The error "Could not find or load main class" is usually caused by java environment setting and the blank space in the installation path.

The java settings must point to the root JDK folder, and not the JRE.
Have you checked this KB article about:TalendHelpCenter:Requiring a JDK installation to build jobs starting from version 6.0?
Best regards
Sabrina
Anonymous
Not applicable
Author

.
Anonymous
Not applicable
Author

Hi - 
I have looked at these options and they all look good. But I am still getting the same error
0683p000009MBm4.png 0683p000009MByE.png
_AnonymousUser
Specialist III
Specialist III

All these issue are related to Java
1) java.lang.NoClassDefFoundError: Integer
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 
--> Install Java 8 Update 51
2) The error "Could not find or load main class" 
It can be fixed by going to Window > Preferences > Installed JREs, selecting Edit and browsing for the appropriate JRE