Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
解决方法:
Go to (Help | Edit Custom Properties...)
create the file if it ask you to create it, to disable the error message paste the following to the file you created :
idea_rt
idea.no.launcher=true