Installing Checkstyle-Plugin (7.2.0) for Eclipse Neon fails

I tried installing checkstyle-Plugin for my eclipse Eclipse for Java Developers package by dragging the provided link from http://eclipse-cs.sourceforge.net/#!/ onto my Eclipse Window.

Unfortunately, this leads to 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 can fix this?

Installing using the Marketplace also did not help. This failed:

 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 
0
source share
1 answer

YOU NEED TO INSTALL YOUR FREE CORPORATE LINK CERTIFICATE IN JRE CACERTS. FOR ANY USE OF JAVA PKIX SSL, YOU MAY OBTAIN THIS MANUAL.

How to get a root certificate?

enter image description here

  1. Click View Certificate. You can see the hierarchy and select the highest certificate in the hierarchy.
  2. Confirm that the certificate has the word ROOT in its name.
  3. Now you can just see this part of the hierarchy, you can see the rectangle of the certificate image. Just drag this image and release it to your desktop.

NOW YOU HAVE A CERTIFICATE OF MOUTH!

HOW TO INSTALL THIS CERTIFICATE IN JAC CACERTS?

Before proceeding, confirm that you have found exactly the jre that gives this error. Many times the IDE uses jre, which is not associated with it with the jre system. In my case, I pointed my entire IDE to my Java system installation.

  • use keytool.exe inside the jre bin folder.
  • fire brigade to put your certificate in a 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 SOLVED! CHECK IDEA RESULTS AND CHECK.

+1
source

Source: https://habr.com/ru/post/1260424/


All Articles