Mac class Javalaunchhelper is implemented in both error __java

Source: Internet
Author: User
Tags oracle developer

Turn from: http://blog.csdn.net/lizhaowei213/article/details/68951671


Class Javalaunchhelper is implemented in both/library/java/javavirtualmachines/jdk1.8.0_121.jdk/contents/home/bin/ Java (0X10D19C4C0) and/library/java/javavirtualmachines/jdk1.8.0_121.jdk/contents/home/jre/lib/ Libinstrument.dylib (0X10EA194E0). One of the two would be used. Which one is undefined.

Last night on the Mac loaded with IntelliJ idea, conveniently with the IJ with the Java Engineering template to create a test project, the console reported such an error.

It means the Javalaunchhelper class was implemented two times. Helpless under the search for omnipotent stack Overflow, found the solution.

Http://stackoverflow.com/questions/43003012/objc3648-class-javalaunchhelper-is-implemented-in-both

The quote high vote answers as follows

Can find all the details here:idea-170117 "Objc:class Javalaunchhelper are implemented in both ..." Warning in Run cons Oles

It's the old bugs in Java on Mac this got triggered by the Java Agent being used by the IDE when starting the app. This is harmless and are safe to ignore. Oracle Developer ' s Comment:

The message is benign, there are no negative impact from-problem since both copies of that class are identical (Compil Ed from the exact same source). It is purely a cosmetic issue.

The problem is fixed in Java 9 and in Java 8 Update 152.

If It annoys you or affects your apps into any way, the workaround for IntelliJ of idea are to disable IDEA_RT launcher agents by Adding idea.no.launcher=true into idea.properties (Help | Edit Custom Properties ...).

The foreign code friend clearly explained the reason for this error, presumably means that this is a Mac above Java bug, will be in those who use the Java agent on the IDE to run the application trigger, but this error on the program is no effect, can be ignored. have been fixed in Java 9 and Java 1.8.152 versions.

Solution:

Click on the Help-edit Custom properties of the IJ top menu without this properties file, IJ prompts to create it, and then adds

Idea.no.launcher=true

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.