Closed paulmrozowski closed 4 years ago
I suspect this is likely due to the service account running the process can't locate Java. I would suggest running a PowerShell task directly on the build agent to confirm Java is being properly located by the build task.
Closing due to inactivity.
I'm trying to add this as a step in one of our Azure DevOps deployments. However, it keeps failing with " 'java' is not recognized as an internal or external command":
I found this issue which is the same scenario (we're running this on our own build server running Windows Server 2019). I downloaded the Java runtime (I've tried this with both the 64-bit version and, when that didn't work, I uninstalled it and installed the 32-bit version). In both cases I went into System Properties > Advanced > Environment Variables and configured the System variables.
I created these two settings:
I also tried adding the jre1.8.0_261\bin folder to the path.
But when I redeploy it still fails with the same error. I'm not quite sure what else to try.