This should probably with multiple paths and set `JAVA_HOME`. Also, multiple commands should be on multiple lines.