Earlier I used the Selenium Java on Eclipse with both ways such as adding jars in classPath and/or via Maven POM.xml file and both worked. I tried both these ways in VSCode but both failed.