RWeka interface for Text mining



Error: package or namespace load failed for ‘RWeka’:
.onLoad failed in loadNamespace() for ‘rJava’, details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.

Anyone can help me on the above error. I am trying to use RWeka interface for text mining. I upgrade the Java in my system. I am using Windows 7, 64bit. Install Java Version 8 update 151. Please help me on this error, how to resolve this issue ?