Reputation: 4631
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
Upvotes: 0
Views: 3407
Reputation: 1377
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?
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.
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.
Upvotes: 3