Installing the Java development kit doesn’t seem to be the solution for me. I get the same error when launching Cell Profiler 2.2.0 on Mac OS X 10.9.5
Also, checking the Java version:
java version "1.8.0_102"
Java™ SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)
Are there any other solutions?