This error indicates that JAVA is not installed in the machine. I believe pyflink is trying to find the JDK and coudn't find it. Make sure you install the JDK and ensure to set the environment variable. I faced the same issue and I was able to resolve it.