I have installed the Talend Studio as root on CentOS but attempted to run jobs as a non-root user.
In this case, changing the file permission to run "chown -R talend:talend workspace/.Java" has resolved the problem.
because of the space in my installation path "C:\Program Files\...".
# cd `dirname $0`
cd `dirname -- "$0"`
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
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.
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 ..
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.
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.
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.
Does this issue repro on all your jobs or a specific one?
You need to check jar path and class path in .sh script . It should be correct.
$ROOT_PATH/../bin/<<JAR NAME>>.jar: <<Complete Class path>>
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Read about some useful Context Variable ideas