1. 程式人生 > >IntelliJ IDEA: Objc[63766] Class JavaLaunchHelper is implemented in both...

IntelliJ IDEA: Objc[63766] Class JavaLaunchHelper is implemented in both...

Objc[63766] Class JavaLaunchHelper is implemented in both ... and ...,One of the two will be used. Which one is undefined.

Root cause:

When starting a java application, IDEA finds two classpaths in current lcoal environment, as a result, it selects one of them and raise a waring saying above info.

To solve this problem:

1) Make sure that your local machine environment is well configured, use Mac as example:

1.1) vi ~/bash_profile
1.2) Make sure java executable applications can be find, as following:

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home
M2_HOME=/Library/apache-maven-3.5.4
PATH=$JAVA_HOME/bin:$PATH:$M2_HOME/BIN:.
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export JAVA_HOME
export PATH
export CLASSPATH


1.3) Run following command to make this environment variables come into play.
source ~/.bash_profile

2) Use this path to find 'custom properties':

IDEA > Help > Edit custom properties... and then add following statement at the end of the file:

idea.no.launcher = true


Then as the last step, you'll need to restart your IDEA, after that, you'll find this warning won't show any longer.
 

相關推薦

IntelliJ IDEA: Objc[63766] Class JavaLaunchHelper is implemented in both...

Objc[63766] Class JavaLaunchHelper is implemented in both ... and ...,One of the two will be used. Which one is undefined. Root cause: W

InteliJ Idea 2017.1 for Mac 版 objc[4163]: Class JavaLaunchHelper is implemented in both XXX提示

objc[4163]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8

objc[8715]: Class JavaLaunchHelper is implemented in both....

javalauchhelper在Mac上,升級IntelliJ Idea 2017.01後,運行的時候出現了一個紅色的警告:objc[8715]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/j

objc[8715]: Class JavaLaunchHelper is implemented in both...

在Mac上,升級IntelliJ Idea 2017.01後,執行的時候出現了一個紅色的警告: objc[8715]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131

Mac的IdeaClass JavaLaunchHelper is implemented in both 報錯

原文: https://blog.csdn.net/lizhaowei213/article/details/68951671 Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jd

Mac 版本IDEA "Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachie

objc[1111]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0

idea 啟動Class JavaLaunchHelper is implemented in both 。。。

Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Conte

如何解決Mac下Class JavaLaunchHelper is implemented in both的錯誤

在執行程式的時候,經常會在控制檯頂部出現如下錯誤:objc[20327]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/jav

Mac 上 Class JavaLaunchHelper is implemented in both 報錯

Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d19c4c0) and /Library/Java/Ja

Class JavaLaunchHelper is implemented in two places

升級完IntelliJ IDEA2018.1之後,執行程式是會在控制檯輸入如下警告資訊:儘管是個警告資訊,並且可以通過配置將其隱藏,但是恰好此時強迫症犯了,那就把它解決吧。於是通過簡單的搜尋,找到解決方案:這個問題是Java的一個bug,由啟動應用程式時由IDE使用的Java代理觸發。 這個資訊是無害的,可以

Intellij IDEA 老出現 This file is indented with tabs instead of 4 spaces提示

問題:Intellij IDEA 老出現 This file is indented with tabs instead of 4 spaces提示,嫌煩。 此提示是關於縮排用空格縮排還是tab縮排的問題,隨習慣吧。 解決方法:在settings --> Editor --&g

intellij idea中出現class path resource [spring/applicationContext.xml] cannot be opened because it does

 Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class

IntelliJ IDEA遇到Unable to parse template “Class”錯誤

edi pda jdk版本 option ref tps ubunt class 回退 在新安裝的Ubuntu16下運行IntelliJ IDEA時, 遇到一個錯誤,在新建class的時候,提示Unable to parse template “Class” 通過查看 Se

[IDEA]IntelliJ IDEA匯入JDK出現The selected directory is not a valid home for JDK問題的解決方法

昨天在實驗室的桌上型電腦上配置Java。之前一直在MAC上都是使用IntelliJ IDEA玩耍,這次也不能少了它。馬上上官網下載了一個Windows版的,用學生帳號註冊完之後,就可以直接使用了!但是在匯入JDK的時候遇到了問題 ,下圖是新增JDK的介面: 點選new按鈕後出現下圖:

IntelliJ IDEA 中 右鍵新建(new)時,選項沒有scala(java) class的解決方法和具體解釋

首先註明:本文不是原創,我也是在網上找了好久,找到這篇博文(連結),解決了我的問題,順便在這裡總結一下,給有需要的人。 專案是用Maven 建立的,具體的建立過程就不做解釋了。出現的問題如下:  具體問題的圖,如下: 開啟設定介面的路徑如下: 主介面File——&

解決IntelliJ IDEA duplicate class R.java and BuildConfig.java

產生原因,原來的Eclipse專案自動生成了gen資料夾,在匯入後,IntelliJ又生成了自己的r【generated 】。導致了duplicate錯誤。 解決辦法,點選右邊的叉號,刪除gen,如

IntelliJ IDEA The selected directory is not a valid home for JDK 錯誤解決辦法

最近想學java,安裝了IntelliJ IDEA,建立了一個hello world專案。 可是說需要我首先配置SDK,那就配吧 可是當我選擇了java安裝目錄時,IntelliJ IDEA卻提示錯誤 The selected directory is not a valid home for JDK

Element flitername is not allowed here-web.xml version="3.1"-intellij idea 14.1.4

intellij idea 14.1.4版本中開發一個servlet的專案,在web.xml中新增Filter時,遇到了“Element fliter-name is not allowed here”,先上張圖片, 如圖所示,紅色的就是提示錯誤的地方,我

Intellij IDEA配置springMVC時提示"context:component-scan" is not bound

xxx-servlet.xml配置 <context:component-scan base-package="包名" /> 時,報錯:The prefix "context" for e

mac下Intellij IDEA檢視Java原始碼提示"Decompiled.class file, bytecode version:52.0 (Java 8)

mac下IDEA檢視Java原始碼,每次都提示“Decompiled.class file, bytecodeversion:52.0 (Java 8)”, 並且也沒有讓下載的選項。 原始檔路徑刪了加、JKD刪了加,來來回回搞了好多次都不行,很煩人。