Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I built a job in Talend for ESB v. 6.4.1. and it ran succesfully when running from the studio. Also when I deployed it in the task scheduler of my own PC (Windows 10, java build 1.8.0_45-b15) , but... It won't run when deployed in the same way at the server from where it should run. It's a Windows Server 2012, with the latest Java update build 1.8.0_162-b12.
I don't understand why it won't run properly, it doesn't throw errors or anything, it just doesn't start up. Even though it does say it has run afterwards.
And in the Task scheduler I just start the .bat file from the built job, the same way I do with other jobs, that are running just fine..
I hope someone has an idea what could be the problem!
We solved the issue by putting the compliance level of Java on 1.7, via View >> Preferences >> Java >> Compiler (see picture attached).
the real reasons could be different of course, but ... but why You are not start from fix first difference:
- in many place highlighted - JDK version for studio and runtime must be the same?
what prevent You from upgrade JDK on Your machine?
unless not fix this - any other guess would be not correct
Hello,
I upgraded the JDK on my machine, rebuilt and redeployed the jobs, but they still refuse to run at the server..
Any other ideas?
do You try run in it from CMD window? (not from explorer)
- open CMD window
- cd to Job folder
- run .bat file
what in print?
Hmm.. the error is still that the java is not good, exactly:
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.7', but '1.8' is required.
Error: Could not find java.dll
Error: Could not find Java SE Runtime Environmetn.
but it is installed on the server, if I check which version of java is running, it's the 1.8_162, now exactly the same as my own pc. Although there is also a 1.7 still running (for other talend jobs). Might that be the problem? How can i configure that this job should run with 1.8 ?
it mean - You have 2 or more installed on same server
You need remove old
You could check - what java run first
java -version
in same CMD window
You can edit PATH to and JAVA_HOME environment variables to be sure - what version they point
You can try to set all this variables inside .bat file
PATH = where proper JDK
JAVA_HOME=path to proper JDK
That is not possible, because a lot of jobs are running on that server, which are built in other versions of java.
as I already suggest You - You can test add to variables
PATH
JAVA_HOME
to Your job .bat file
but generally - many versions of JAVA on same computer (especially Windows, where something store in registry) - it always source of collisions ...
so, The question - "why?", is resolved, and now You can decide - what todo
It still doesn't work, even with the variables..
I keep getting the same error, which i posted before. Even when i just ask the java -version.
I keep getting the same error, which i posted before. Even when i just ask the java -version.
this is answer, if it production server - do not touch it! or You crash all job while try to resolve the problem!
Select new server dedicated to new task and migrate them 1 by 1 to java 1.8