Java_home for tentacle


I am deploying java application to RH Linux using Deploy Java Archive template step. However, got the following error

Failed to run java. You must have Java 1.8 or later installed on the target machine, and have the java executable on the path or have the JAVA_HOME environment variable defined
The remote script failed with exit code 1
The action Java Archive on LnxDev2 failed

Java 1.8 is installed on the target machine. Is it possible to set JAVA_HOME only for tentacle service? If so in which file?


Hi @endashaw.adane,

Sorry for the delay in getting back,

Setting JAVA_HOME for only the tentacle service, is not something that we have built in as a feature. Although, this is not to say it hasn’t been tried.

I’ve seen cases where people have had success by setting the JAVA_HOME variable in a Octopus predeploy step.

I believe this should achieve what you are aiming for.

Let me know how you get on.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.