Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a Linux VM that has lots of talend jobs that I created using TOS 6.4.1 and java v.1.8.0_181. Never had any major issues until I recently upgraded TOS to its newer version 7.2.1.
cd `dirname $0` ROOT_PATH=`pwd` export PATH=$PATH:/usr/java/jre1.8.0_181/ export JOBS_PATH=/home/splunk/jobs/ export SPLUNK_LOG=/splunk/ java -Dtalend.component.manager.m2.repository=$ROOT_PATH/../lib -Xms256M -Xmx1024M -cp .:$ROOT_PATH:$ROOT_PATH/../lib/routines.jar:$ROOT_PATH/../lib/crypto-utils.jar:$ROOT_PATH/../lib/dom4j-1.6.1.jar:$ROOT_PATH/../lib/edtftpj-2.5.0.jar:$ROOT_PATH/../lib/ini4j-0.5.1.jar:$ROOT_PATH/../lib/jakarta-oro-2.0.8.jar:$ROOT_PATH/../lib/log4j-1.2.17.jar:$ROOT_PATH/../lib/talendcsv.jar:$ROOT_PATH/socorp_existingreportsatg_0_1.jar: sodimac.socorp_existingreportsatg_0_1.SOCORP_ExistingReportsATG "$@"
That's the script that I'm trying to run on this VM. And when I execute it, it drops this message:
: No such file or directoryun.sh: line 2: cd: .
Error: Could not find or load main class sodimac.socorp_existingreportsatg_0_1.SOCORP_ExistingReportsATG
(Keep in mind that the job name is "SOCORP_ExistingReportsATG_run.sh", that's why it says "directoryun.sh" I think)
When I execute it on my laptop it works perfectly. This is the laptop with TOS DI v7.2.1, but the java version is 1.8.0_211-b12, idk if that's important but I think that this has something to do with it.
Thanks in advance!
Hello,
I would recommend using oracle JDK instead of JRE. JDK is not needed to run job especially in the studio, but needed to export the job.
Best regards
Sabrina
Didn't understand. Should I use JDK or JDE?
And is there a chance that there is a java version mismatch on both machines and that's why it isn't working on the VM?
Again, thanks in advance
I still can't use my new laptop jobs on the VM...
Any advice?
Hi,
Did you find the issue?
Br,
Hello,
Could you please give us more information about your current situation? What's Linux VM and JDK version are you using?
Best regards
Sabrina