You need to add httpcore to your dependencies. Try adding version 4.3 or further.
A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with
java -cp yourClassPath or at your IDE if you're using one.