This mistake is strange, and I cannot fully understand it. I installed EclipseRCP 3.5.1, Update Java SE 1.6 16 and upgrade to SWT 3.5. I created a new project, installed dependencies and tried to compile. When trying to import, use the following:
import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
I get an error:
Access restriction: The type XMLSerializer is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar.
I already have google, read a few answers here ... and the problem is still there. The funny thing is that if I use the previous EclipseRCP (Version: 3.4.2), this problem never occurs. Version 3.4.2 uses the same version of the JRE, and I just tested the SWT version. Works great. I assume the problem is with some plugin of the new IDE. Any ideas?
PS I found this article. But I do not like or want to change the code if I do not need it. First, the source of the problem, and a solution will follow.
java restriction
hypercube
source share