objc[79472]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x103f414c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/li
作者: java 发布时间: 2022-10-17 浏览: 819 次 编辑objc[79472]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x103f414c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x103fbb4e0). One of the two will be used. Which one is undefined.
错误: 找不到或无法加载主类 com.zhoubian.utils.Api_java_demo
解决方法:
在idea中,进行修改idea.properties
打开idea --> 工具栏Help --> Edit Custom Properties...
添加一下内容
#custom IntelliJ IDEA properties idea_rt idea.no.launcher=true
重启idea就可以了