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

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.


In my case, it occurred before I update Maven Project. In eclipse I do this:

Project → Properties → Java Build Path → Edit JRE System Library:

Select Workspace default JRE

I noticed that every time when I Update Maven, the problem occurs again. And I have to do everything again.

What have I to do for not need repeat the steps again, after Update Maven Project?

Tags:

Java