objc[20556]:Class JavaLaunchHelper is implemented in both xxx [How to Solve]

IntelliJ idea was upgraded on MAC today

after upgrading to 2017.01, when running the program, the following red warning will appear:

appears

objc[20556]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java (0x108ada4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108bb64e0). One of the two will be used. Which one is undefined.
stack overflow says that this is a Java bug on MAC, but it doesn’t affect normal programming

Solution:

in idea, enter help > Edit Custom Properties…
Modify idea.properties and add the following content:
# custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true
Restart ideas can be

Similar Posts: