Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Issue compiling CBI WTP with Access Restriction error

Can you try Tycho 0.15.0-SNAPSHOT? It has fixes for couple of problems
related to bundle runtime execution environment handling, which I think
can explain the compilation errors that you see.

--
Regards,
Igor

On 12-05-15 3:33 PM, Thanh Ha wrote:
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]

_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top