Unable to call "qdap" package after installation

I'm trying to call the "qdap" package after installation, I'm currently learning text mining.

I ran the codes below

I came across "setting the java environment" on stackoverflow pages.
Sys.setenv(JAVA_HOME='C:\Program Files\Java\jre7')

This also didn't work. I have attached the error message - I'm using a windows

java error

rJava requieres a JDK (Java Development Kit) installation and you are setting the path to a JRE (Java Runtime Environment) installation, that is why it fails.