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.
 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值