
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error : Could not find or load main class
- I checked Preferences > Java > Installed JREs. There is already Java7.
- My installation path doesn't contain spaces or blanks.
- I already tried to restart my computer/reinstall Talend DI.
Currently, none of these solution worked, I do not know what else to do.
I would be really grateful if someone could help me with that problem.
PS: this is the full error message - in german -
"
Fehler: Hauptklasse
clement.transaction_failure_dashboards_0_1.Transaction_Failure_Dashboards konnte nicht gefunden oder geladen werden
Job Transaction_Failure_Dashboards ended at 15:54 25/08/2014.
"
Clément

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Recently I refreshed my windows OS. I had worked without any issue for a year on Talend 5.3 and JDK 1.7_0_40. But after refresh, Java version got changed and I started facing this error. Surprizing issue is that same job would run without any issue some time, but most of times, it will through the same error which you have mentioned. It is definite that this is an error due to JDK incompatibility.
To get going, I downloaded and installed talend 5.1 and to my expectations, same job worked without any issue after import.
See if use case can help you.
Thanks
Vaibhav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This error : "Could not find or load main class" means that Talend didn't find your workspace.
Make sure there is no space or special characters in the path of your workspace. (not necessarily Talend Installation directory)
Try to re-import your workspace

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please take a look at online document TalendHelpCenter:Compatible Platforms page to see if you are on a compatible system.
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we faced this error with a DI job.
We redeployed the job several times and restarted the jobserver, with no effect.
The solution was to delete all DI jobs in the job conductor and all job files in the server file system (generated jobs, log, ...).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The solution was to delete all DI jobs in the job conductor and all job files in the server file system (generated jobs, log, ...).
Could you please also indicate the build version you are using?
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I faced the similar issue with one of the jobs. It started happening ever since the job was migrated from a lower version to v7.3
Tried multiple options, including creation of a new Project, new workspace, etc. etc. whatever I could find on community blogs.
Though, then I decided to create a new job and start copying sub-jobs/flows one at a time from the old job to this new one. Every time I copied a sub-job/flow, I made a run to make sure that this flow is working. I continued in this fashion until all the flows were copied over and successfully executed. Once done, I deleted the old job that was throwing me the error and renamed this new job to the name of the old job.
This worked for me. Hopefully it helps others who are facing this issue too. Looks like something did not work as expected while migration from lower version to higher version of Talend.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error: Could not find or load main class
I'm using the 6.4.1 DI, and I couldn't find the issue
anyone has an idea about it
Please share your thoughts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Rajendar Padam
Could you please indicate which java version you're using and please upload the log message, which is located in <Talend Studio installation path>/workspace/.metadata/.log
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using Talend Studio 8.0.1 R2023-05 with OpenJDK 11.0.2. I had been modifying and coding in my project for a few weeks without problem. Right before this problem started, I was fixing a number of discrepancies in my contexts variables. For example, I have DEV, QA and PROD environments. A previous programmer, in this project, had defined DEV, QA, PROD, plus dev, qa, and prd environments for some connections. I cleaned those up to be consistent, but must have confused Talend and got the "Error : Could not find or load main class" message. I restarted Talend Studio (which has worked in the past) - no luck. I restarted my machine and started Talend Studio - no luck. After reading the various solutions here, I decided to take Tarun's response and try something similar. I simply duplicated my main job and ran the duplicated job, and it ran fine! I then deleted the old main job and renamed the duplicated job. I didn't have to copy sub-jobs or flows, one by one, over to my new job. So, that might be an experiment to try before trying Tarun's solution above.
