安装用于Eclipse Neon的Checkstyle-Plugin(7.2.0)失败 [英] Installing Checkstyle-Plugin (7.2.0) for Eclipse Neon fails

查看:574
本文介绍了安装用于Eclipse Neon的Checkstyle-Plugin(7.2.0)失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过从


  1. 单击查看证书。您可以查看层次结构,并选择层次结构中最多的证书

  2. 确认证书具有ROOT字它的名称。

  3. 现在只是在层层结构部分,你可以看到证书的矩形图像。只需拖动该图像并将其放在桌面上。

现在有您的根证书! p>

如何将此证书安装到JRE CACERTS?



在进一步确认之前你已经找到正是给出这个错误的jre。很多时候,IDE使用与其捆绑的jre而不是系统jre。在我的情况下,我将所有的IDE指向我的系统Java安装。


  1. 在你的jre bin文件夹内使用keytool.exe。
  2. fire following命令将证书放在cacerts文件中




keytool -import -noprompt -trustcacerts -alias ALIASNAME -file

/PATH/TO/YOUR/DESKTOP/CertificateName.cer -keystore
/ PATH / TO / YOUR / JDK / jre / lib / security / cacerts -storepass changeit


现在您的问题已被解决!重新启动IDE并检查结果。


I tried to install the checkstyle-Plugin for my eclipse bundle Eclipse for Java Developers, by dragging the provided link from http://eclipse-cs.sourceforge.net/#!/ onto my Eclipse window.

Unfortunately this results in the following error:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,net.sf.eclipsecs.branding,7.2.0.201611072237
No repository found containing: osgi.bundle,net.sf.eclipsecs.checkstyle,7.2.0.201611072237
No repository found containing: osgi.bundle,net.sf.eclipsecs.core,7.2.0.201611082201
No repository found containing: osgi.bundle,net.sf.eclipsecs.doc,7.2.0.201611082205
No repository found containing: org.eclipse.update.feature,net.sf.eclipsecs,7.2.0.201611082205
No repository found containing: osgi.bundle,net.sf.eclipsecs.ui,7.2.0.201611072237

Any idea how I might fix this?

Installing it using the Marketplace also did not work. It failed with:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at https://sourceforge.net/projects/eclipse-cs/files/updatesite/7.2.0/plugins/net.sf.eclipsecs.doc_7.2.0.201611082205.jar.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Unable to read repository at https://sourceforge.net/projects/eclipse-cs/files/updatesite/7.2.0/features/net.sf.eclipsecs_7.2.0.201611082205.jar.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

解决方案

YOU NEED TO INSTALL YOUR NETWORK ROOT SSL CERTIFICATE INTO JRE CACERTS. FOR ANY JAVA PKIX SSL EXAPTION YOU MAY FOLLOW THIS GUIDE.

How to get Root Certificate?

  1. Open Google Chrome and navigate to https://sourceforge.net/
  2. Click on icon just besides your url. see following image.

  1. Click on View Certificate.You can see hierarchy and select top most certificate in hierarchy
  2. Confirm that certificate have ROOT word in its name.
  3. Now just bellow that hierarchy part you can see a rectangle image of the certificate. Just drag that image and drop it to your desktop.

NOW YOU HAVE YOUR ROOT CERTIFICATE!

HOW TO INSTALL THIS CERTIFICATE INTO JRE CACERTS?

Before you proceed further do confirm you had located exactly that jre which is giving this error. Many times IDE uses jre which is bundled with it not system jre. In my case I pointed all my IDE to my system Java installation.

  1. use keytool.exe inside your jre bin folder.
  2. fire following command to place your certificate inside cacerts file

keytool -import -noprompt -trustcacerts -alias ALIASNAME -file
/PATH/TO/YOUR/DESKTOP/CertificateName.cer -keystore /PATH/TO/YOUR/JDK/jre/lib/security/cacerts -storepass changeit

NOW YOUR PROBLEM IS RESOLVED! RESTART YOUR IDE AND CHECK RESULTS.

这篇关于安装用于Eclipse Neon的Checkstyle-Plugin(7.2.0)失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆