Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
ishchopra
Contributor III

Error: Could not find or load main class. when running a Talend Job

Hello Experts,

 

I spent two days to find out why the Talend job is throwing error but still no luck, this seems to be a common problem but i can't figure out why this is happening.

 

I am extracting data from Salesforce, however when i run the job in the Talend Studio - i get below error :

 

"Error: Could not find or load main class" 

 

Talend Version 6.3

JAVA_HOME = C:\Program Files\Java\jre1.8.0_121\bin

Path =  %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin

Talend Installation : C:\Talend\6.3.1\studio\Talend-Studio-win-x86_64

Job WorkSpace: C:\Users\t00348\workspace

 

please help and let me know what is wrong

 

Ankur

 

Labels (5)
1 Solution

Accepted Solutions
ishchopra
Contributor III
Author

Hey,

 

apologize for late response, this problem was resolved by removing bin from below

 

 JAVA_HOME = C:\Program Files\Java\jre1.8.0_121\ bin

 

thanks guys

 

A

View solution in original post

11 Replies
Anonymous
Not applicable

Hi,

Is your java environment set correctly? Have you added some extra java library in the extensions folder where the java install path is?

Best regards

Sabrina

root
Creator II

Check out your <tos_install_directory>\workspace\.metadata folder.
You should see a .log file. Maybe that can provide additional details on what the error could be!
ishchopra
Contributor III
Author

Hey,

 

apologize for late response, this problem was resolved by removing bin from below

 

 JAVA_HOME = C:\Program Files\Java\jre1.8.0_121\ bin

 

thanks guys

 

A

Anonymous
Not applicable

Hi,

 

I have the same issue with talend, kindly let me where to remove the extra library in extension folder where java installation path. 

 

Thanks & regards,

Manikrish

Anonymous
Not applicable

Hello,

For v6 of Talend products JDKv1.8 is required instead of JRE. Please ensure JDK bin is included in your PATH environment variable and is being reached.

Here is online document about:TalendHelpCenter0683p000009M9p6.pngetting up the Java environment variable.

Please have a look at my screenshot.

0683p000009LyJD.png

Best regards

Sabrina

BP2R
Contributor

Hi There,

 

i'm running TOS on my Laptop Win10 and running a TAC server on a separate Server WinServer 2016 Datacenter.

Suddenly on TAC a job has not accepted anymore any further publication and ends as soon as it starts by Error: Could not find or load main class.

And a few hours later another one, others are runing perfectly.

I checked advices from the community in particular the JAVA_HOME story but we don't even have a JAVA_HOME variable on this 7.0.1 install only a Talend_home.

 

Any hint about the issue ? I read somewhere else something about corrupted workspace but all these jobs are working fine on TOS so on TAC server I don't now if the Workspace in itself is existing.

 

thanks for any help.

 

Regards,

Fred 

Anonymous
Not applicable

Hello Fred,

Are you using talend subscription solution 7.0.1? Does this job work perfectly fine in studio? Are you using tRunJob component in your job?

We need more information to address your issue.

Best regards

Sabrina

karivadhan
Contributor

Hi All,

Found this thread as I am also facing the same issue. I have a main job with multiple tRunJobs which I deployed into TAC. The main job is running fine from the studio but not from the TAC. The error message says "Error: Could not load main class".

I have verified both jdk and jre variables , both are configured properly. 

Am using version 7.0.1.

 

Note: Am able to run Individual Jobs from TAC.

Anonymous
Not applicable

Hello @karivadhan 

Are you able to launch them one by one to see if they work good? Did you check the "use and independent process to run subjob" and also check "Use dynamic job" in your tRunJob components? We will appreciate it if you could post a full screenshot of your work flow.

Best regards

Sabrina