我已经将java更新为JDK 19,当我尝试打开Eclipse市场空间时,
MarketplaceDiscoveryStrategy失败,错误无法完成对https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&client.version=1.6.4.v20180214-1810&os=win32&ws=win32&nl=en_US&java.version=1.8.0_211&product=org.eclipse.epp.package.java.product&product.version=4.7.3.M20180330-0640&runtime.version=3.13.0.v20170207-1030&platform.version=4.7.3.v20180330-0640的请求:无法在https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&client.version=1.6.4.v20180214-1810&os=win32&ws=win32&nl=en_US&java.version=1.8.0_211&product=org.eclipse.epp.package.java.product&product.version=4.7.3.M20180330-0640&runtime.version=3.13.0.v20170207-1030&platform.version=4.7.3.v20180330-0640读取存储库。
我想安装testNg,所以我尝试按下面的方式添加证书,并使其信任,仍然面临相同的问题。
-import -alias TestNg -keystore "C:\Program \Java\JDK-19\lib\security\cacerts“-file TestNg.cer
我不犯错误,
无法在https://dl.bintray.com/testng-team/testng-eclipse-release/content.xml读取存储库。无法在https://dl.bintray.com/testng-team/testng-eclipse-release/content.xml读取存储库。PKIX路径生成失败: sun.security.provider.certpath.SunCertPathBuilderException:无法找到被请求目标的有效证书路径
我遗漏了什么吗,我没有看到JDK的JRE是我缺少的吗?
发布于 2022-10-26 05:06:15
在探索了很少之后,我找到了解决这个问题的方法,
错误背后的原因是:
我们的合作防火墙(ZScalar)阻止了这些附加步骤,安装尝试将在以下消息中失败:
无法在https://dl.bintray.com/testng-team/testng-eclipse-release/content.xml读取存储库。无法在https://dl.bintray.com/testng-team/testng-eclipse-release/content.xml读取存储库。PKIX路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标的有效证书路径。
Java不承认根证书颁发机构(CA)。
如何解决这个问题?
有两种方法可以解决这个问题:
若要验证根证书,请确定仙人掌文件位于何处。
Cacerts文件可在eclipse文件夹中使用。例如
C:\Eclipse 2022 09\eclipse-java-2022-09-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20220903-1038\jre\lib\security\cacerts
现在,需要将软件的证书添加到这个仙人掌文件中。Eclipse市场本身并没有对我开放。所以在浏览器上我点击了下面的链接,
https://marketplace.eclipse.org/
单击HTTPS证书链并导航证书层次结构。在顶部应该有一个主根CA。这可能在我的java仙人掌文件中丢失了。导出证书并保存在我的计算机中。现在导入到仙人掌文件中。
打开证书公开的cmd。执行以下命令。
关键工具-import -alias MarketPlace -keystore "C:\Eclipse 2022 -keystore -file ZscalerRootCAMP.der
这里,ZscalerRootCAMP.der是为Eclipse导出的证书。
重新启动eclipse,打开Eclipse市场,现在我可以安装软件了。
https://stackoverflow.com/questions/73948993
复制相似问题