-->

open eclipse Markeplace

2019-01-15 16:11发布

问题:

I want to use eclipse marketplace for adding svn plugin but when i try to do it i have this exception :

Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Unable to read repository at marketplace.eclipse.org/catalogs/api/p.
Unable to read repository at marketplace.eclipse.org/catalogs/api/p.
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 marketplace.eclipse.org/catalogs/api/p.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I use eclipse kepler.

have you any suggestions ?

thank you

回答1:

I am afraid, it is not proxy. Nor the antivirus. I had the same problem and neither helped. But your Eclipse simply can't reach a site because java 7 by default makes Eclpse to reach it throught the protocol IP6, that is not really supported by Eclipse, at least in versions till 4.3.

Go to cmd, use

setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true

restart eclipse and it will work.