It's something installed on your system that is using Java. If you only have Java 1.8 installed then the below fix might be applicable to you. If you are comfortable editing files (I'm a computer programmer) this is how I fixed the problem on my system:
Edit /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Info.plist
find the <key>JVMCapabilities</key> and make sure the <array> after it contains:
<array>
<string>JNI</string>
<string>BundledApp</string>
<string>CommandLine</string>
</array>
Your installed Java version might be slightly different in which case you should modify the path accordingly.
On the other hand, if you do not have 1.6 installed and you want to avoid editing files, you can install that alongside 1.8.
https://support.apple.com/kb/DL1572?locale=en_US has the link.
The issue with 1.8 is that it is shipped by Oracle and they have a mistake in their installation program that leaves those keys out of their .plist file.