`java` may not be the version of java that we'll be using, either use the mortar/local/java@command attribute or easier still ENV['JAVA_HOME']/bin/java.