Skip to content

Instantly share code, notes, and snippets.

@8bitreid
Last active March 18, 2024 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8bitreid/c9e015a282dd728095aa1ffe4b335f9d to your computer and use it in GitHub Desktop.
Save 8bitreid/c9e015a282dd728095aa1ffe4b335f9d to your computer and use it in GitHub Desktop.
IntelliJ Class JavaLaunchHelper is implemented in both: Fix

Issue:

When running a scala or java project I get this message, even though the project still compiles and runs.

objc[1069]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x1009ba4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x101b064e0). One of the two will be used. Which one is undefined

Fix:

  1. Open > Project Structure
  2. Edit > Remove the current JDK
  3. click the + button in the top left. then click JDK
  4. Then Select your JDK. In my case it was /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

This is the resolution. Hope this helps.

@azwar
Copy link

azwar commented Aug 9, 2021

Thank you for this solution

@da0811
Copy link

da0811 commented Sep 11, 2022

Thank you. My steps differed but you helped m get there.

I clicked the JDK path drop-down field in the Project Structure>>SDKs window, and rather than the "detected JDK", I clicked the version I want, and no longer see the error message.

@ajinsunny
Copy link

Thank you for this solution. This really helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment