错误
Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0102.jdk/Contents/Home/bin/java (0x10c8be4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0102.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10d8e74e0). One of the two will be used. Which one is undefined.
解决办法
/Library/Java/JavaVirtualMachines/jdk1.8.0102.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home
PS:都是下划线惹的祸
连锁错误
Error:Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java" (in directory "/Users/wangxiaolong/Library/Caches/IntelliJIdea2017.1/compile-server"): error=2, No such file or directory
解决办法:
国外网友的办法:
https://stackoverflow.com/questions/18794573/objc10012-class-javalaunchhelper-is-implemented-in-both-libinstrument-dyl