It looks like TestNG libraries are not properly added to your build path:
If you are using Eclipse,
In Eclipse> Project > Clean
In case of IntelliJ
Go to configuration tab in TestNG "Run/Debug Configurations and select "In the whole project".
Also, if you are using maven, download all dependencies again and update your dependency tree.