
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should see a .log file. Maybe that can provide additional details on what the error could be!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:TalendHelpCenteretting up the Java environment variable.
Please have a look at my screenshot.
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- « Previous Replies
-
- 1
- 2
- Next Replies »