You are probably missing the JAR.
You can download that JAR here and link that with your project: https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/4.27.0
I recommend using Maven for managing your project's external dependencies. It is very popular for Java. Your IDE should be able to generate a basic Maven java project. You will have to refer to the Maven manual for more info.