Access restriction on class due to restriction on required library rt.jar?
Posted
by sal
on Stack Overflow
See other posts from Stack Overflow
or by sal
Published on 2009-05-13T20:16:26Z
Indexed on
2010/03/31
19:13 UTC
Read the original article
Hit count: 496
I'm attempting to compile Java 1.4 code that was created by IBM's WSDL2Java on Java5 without recreating the stubs and saw this error in Eclipse. I'm under the assumption that the stubs created should just compile as long as the runtime jars are available (they are).
Access restriction: The type QName is not accessible due to restriction on required library C:\Program Files\Java\jdk1.5.0_16\jre\lib\rt.jar
The full classname is javax.xml.namespace.QName
What exactly is going on here?
Is this a case where I am trying to refactor a pig from sausage? Am I better off recreating the stubs?
© Stack Overflow or respective owner