Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the same issue with our dev environment. I get error Error: Could not find or load main class. Take note, that it works in our pre-prod environment and setup is identical.
Things to note:
1. Talend is installed in linux machine with no spaces in directory path at all.
2. Talend is root user so it has access to all files.
3. if we contact support most likely it will send us through this forum.
Thanks,
David
# cd `dirname $0`
cd `dirname -- "$0"`
Hello Sabrina,
I am getting the same error : "Error: Could not find or load main class" while running job with MSSQL server as input.
Talend version is 6.3.1 and i have Java 8 installed on my PC using Talend open studio for DI.
The job is very simple to pull records from source table to a excel file.
I have the environment variable JAVA_HOME is set the right java 8 path.
Can you please help/guide on this to resolve the issue. Let me know if you have any more queries
Thanks,
Shobhit
Hello,
What does your installation path look like? Please make sure that you install product in a short path without any special characters, such as blank space.
You cannot change the installation path but you can re-install talend production.
Best regards
Sabrina
Yep - we have same message in our test env ... dev and prod running fine ..
Job runs fine in Studio but not when deployed via TAC. Existing jobs in test env TAC work .. (until I do a generate on them)
I can even run in studio on the remote job server where it fails in TAC.
A previous staff member said it was revolved 2 years ago when it occured .. " there was an orphan ID " ...
I am not sure what he meant by "Orphan ID" however ..
Hello Philippe,
Are you using JDK 1.8?
With your subscription solution, have you already created a case on talend support portal? In this way, we can give you a remote assistance through support cycle with priority.
Best regards
Sabrina
Hi Folks,
I had similar problem yesterday. I got the error Could not find or load main class ***
But realized that this was happening to all jobs which were working fine before.
After some research I realized I had re-organized my jar files and some of those were being referenced in the project.
So a quick check is to see if this affects only the new job or is affecting existing jobs.
Please check it once and make sure if your jars for jdbc or other job specific addon jars havent changed location.
Regards
AD
Hi,
I have exactly the same issue.
My Job is working fine in TOS but when building the JOB and extracting the Zip on the same computer, I run the batch file and get the following: Error: Could not find or load main class
I am on Windows 10, when doing java-version I get the following:
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
This is how I defined my Env. Variables:
JAVA_HOME = C:\Program Files\Java\jre1.8.0_181
Path = C:\Program Files\Java\jdk1.8.0_181\bin
CLASSPATH = %JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
I have tried playing with variables, re-exporting but without success.
Please help...