Because the JDK version on the computer and the version of the project group used inconsistent, so need to uninstall, but as a newcomer small white plus no Mac too much experience, or a little bit of some effort, from the Internet to check the information, finally solve the problem, so record.
Reference Blog: Http://www.tuicool.com/articles/jANjUzi
According to the introduction of the Great God blog, only know that there are DMG and pkg of the MAC installation program form, in the reinstallation of the JDK also does have the process of installing PKG, but did not notice, so, in the/application is only DMG removed, And for both forms of the JDK, but still need to continue to delete the pkg.
I started with someone else's blog, namely: Delete the Java plug-in file Javaappletplugin.plugin (direct search in the Finder), but Java-version will still print out the Java version information, Later a variety of search know to delete the corresponding pkg file, the specific process reference Daniel Blog, in this record.
Of course, can be found on the internet a lot of deleted pkg excellent article, you can learn from
1. "Pkgutil--pkgs" command, List installed pkg package, find the Java pkg, explain, Because I had only deleted the Javaappletplugin.plugin file before, I installed the 1.7 version of the JDK, so the philosophy shows the 2 jdk pkg, normally there should be only one JDK
2. Use "cd/private/var/db/receipts", "ls" command, list all the *.bom and *.plist files, BOM records all the associated files of this package.
With the above questions, there should also be only one JDK version of the BOM and plist
3. Use "Lsbom Com.oracle.jdk8u91.bom" to view all associated files
4. The files for this package are mainly in the/system/library/java/javavirtualmachines/1.8.0.jdk folder, as long as you delete this folder.
At this point, jdk1.8 completely removed
There are also two software to uninstall PKG:
http://www.corecode.at/uninstallpkg/
Https://github.com/mpapis/pkg_uninstaller
Mac Uninstall Java