Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined
⚠️ For JetBrains IntelliJ IDEA: Go to Help -> Edit Custom Properties...
. Create the file if it asks you to create it. To disable the error message paste the following to the file you created:
idea_rt
idea.no.launcher=true
This will take effect on the restart of the IntelliJ.
As of October 2017, this issue is now resolved in
- jdk1.9
- jdk1.8.152
- jdk1.7.161
Install Java 7u21 from: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u21-oth-JPR
-
Set these variables:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home export PATH=$JAVA_HOME/bin:$PATH
Run your app and have fun :)
Copy Pasting @Lichtamberg's comments to gotoalberto's answer
Works also for Java 1.8:
# in ~/.zshrc and ~/.bashrc
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
This fixed my issue on java 8.
Not sure if this is the cause of the problem, but I got this issue only after installing JVM Monitor.
Uninstalling JVM Monitor solved the issue for me.