[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [cbi-dev] Issue compiling CBI WTP with Access Restriction error | 
Hi Everyone,
I'm running into an Access Restriction error while compiling which I'm 
not sure how to resolve. The error below seems to indicate that there's 
some issue with my JDK as far as I can tell. Any ideas on what's causing 
this?
Thanks,
Thanh
[ERROR] Failed to execute goal 
org.eclipse.tycho:tycho-compiler-plugin:0.14.1:compile (default-compile) 
on project org.eclipse.wst.sse.core: Compilation failure: Compilation 
failure:
[ERROR] 
/home/user/Downloads/webtools/wtp-aggregator/sourceediting/plugins/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/SimpleNodeOperator.java:[46,0]
[ERROR] import org.w3c.dom.traversal.NodeIterator;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Access restriction: The type NodeIterator is not accessible due 
to restriction on classpath entry 
/home/user/Downloads/jdk1.6.0_31/jre/lib/rt.jar
[ERROR] 
/home/user/Downloads/webtools/wtp-aggregator/sourceediting/plugins/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/SimpleNodeOperator.java:[288,0]
[ERROR] public void printTree(NodeIterator iter) {
[ERROR] ^^^^^^^^^^^^
[ERROR] Access restriction: The type NodeIterator is not accessible due 
to restriction on classpath entry 
/home/user/Downloads/jdk1.6.0_31/jre/lib/rt.jar
[ERROR] 
/home/user/Downloads/webtools/wtp-aggregator/sourceediting/plugins/org.eclipse.wst.sse.core/src-contentproperties/org/eclipse/wst/sse/internal/contentproperties/SimpleNodeOperator.java:[290,0]
[ERROR] while ((n = iter.nextNode()) != null) {
[ERROR] ^^^^^^^^^^^^^^^
[ERROR] Access restriction: The method nextNode() from the type 
NodeIterator is not accessible due to restriction on classpath entry 
/home/user/Downloads/jdk1.6.0_31/jre/lib/rt.jar
[ERROR] 3 problems (3 errors)
[ERROR] -> [Help 1]