Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class JavaLaunchHelper is implemented in both .../java and .../libinstrument.dylib #49

Closed
stig opened this issue Dec 6, 2015 · 9 comments
Assignees

Comments

@stig
Copy link
Contributor

stig commented Dec 6, 2015

When adding the quasar-core Java agent to my project.clj I get this warning when running Leiningen:

% lein repl
objc[4600]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

This is my project.clj:

(defproject pulsar-toy "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.7.0"]
                 [co.paralleluniverse/quasar-core "0.7.3"]
                 [co.paralleluniverse/pulsar "0.7.3"]
                 [org.clojure/tools.logging "0.3.1"]
                 [org.slf4j/slf4j-log4j12 "1.7.12"]
                 [log4j/log4j "1.2.17"]]

  :main ^:skip-aot pulsar-toy.core
  :target-path "target/%s"
  :java-agents [[co.paralleluniverse/quasar-core "0.7.3"]])
@circlespainter circlespainter self-assigned this Dec 6, 2015
@circlespainter
Copy link
Member

It seems to be an annoyance related to a JDK issue that not been fixed yet for 1.8: http://stackoverflow.com/questions/18794573/objc10012-class-javalaunchhelper-is-implemented-in-both-libinstrument-dyl

@circlespainter
Copy link
Member

I'll close it as there's not much that can be done in Quasar/Pulsar.

@davoVloom
Copy link

You must go to Preferences/Build, Execution, Deployment/Debugger and disable the option: "Force Classic VM for JDK 1.3.x and earlier" This works for me

@vryba
Copy link

vryba commented Jun 22, 2017

Proposed solution didn't work for me, still have "...One of the two will be used. Which one is undefined."

@Rauk
Copy link

Rauk commented Jun 23, 2017

Same for me as well, the solution is not working.
Jdk version: jdk1.8.0_131.jdk
Tried running both on Intellij Idea and Eclipse.
Eclipse is not even showing error and closes the execution without any error.

@chitraj8
Copy link

chitraj8 commented Jul 7, 2017

I hit the same error - none of the proposed solutions works for me

@webit4me
Copy link

Disabling "Force Classic VM for JDK 1.3.x and earlier" works fine as @davoVloom described, but only after restart the IDE

@felipealvesgnu
Copy link

@vryba It just works in Debug Mode, but in Run Mode it won't in IntelliJ !

@Tsahao
Copy link

Tsahao commented Oct 19, 2017

The bug has been solved. Please update your JDK
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8022291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants