'java' is not recognized

I'm trying to run liquibase on one of the build steps but it keeps failing with this error. I've double checked and Java IS recognized by the O.S., it is only the TeamCity Agent that doesn't. This is a new Agent install, I can move the same project to an existing Agent and it builds fine.
What am I missing?

Please sign in to leave a comment.