Java – Access restriction: The constructor Provider() is not accessible due to restriction on required library jdk1.6.0\jre\lib\jsse.jar

java

i am using javax.Mail api with authenticator, but this below code giving

Access restriction: The constructor Provider() is not accessible due to restriction on required library C:\Program Files (x86)\Java\jdk1.6.0\jre\lib\jsse.jar

java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

how to resolve this.

Best Answer

i just removed JRE system library from my project build path and re added. just the error message disappears, how it happened i don't know but my error got resolved.

Related Topic