In VSCode with the Java extension, I am getting this error printed:
NOTE: I have never used Java and have yet to get any if it to run.
Maybe you would find this tutorial useful: