This happens in a Scala / SBT project (SBT 0.13.5, Scala 2.11.8).
The same configuration worked fine in IDEA 2016.x and I can't run it at all in IDEA 2017.1 with the following error:
objc: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java (0x1031b94c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1032814e0). One of the two will be used. Which one is undefined.
Error: Could not find or load main class com.myPackage.myClass
This happens to all executable files & tests.
i've verified the following:
- Scala plugin updated & enabled. Files were indexed and project structure seems to be set up correctly after the upgrade.
- Project Structure in IDEA is defined correctly and all the necessary files are in their correct paths
- JAVA_HOME env var is set to the right location: /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home
- I've seen the article on the JDK warning above nad have my env vars set but that doesn't fix the problem: http://stackoverflow.com/questions/23590613/java-8-class-javalaunchhelper-is-implemented-in-both
Just to reiterate, this was working fine without problem in Intellij 16