[sctp-dev] Access Restrictions when running
jason.kania at genband.com
Wed Dec 15 12:29:52 PST 2010
Thanks for the reply.
I more or less followed the instructions from the URL you referenced on the basis that I am working in eclipse, but I don't know if I missed something obvious. I am not seeing any specific compiler flags or directories that are special.
The errors I get on compile all look like the following:
Access restriction: The type PollArrayWrapper is not accessible due to restriction on required library D:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar
Access restriction: The type SelChImpl is not accessible due to restriction on required library D:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar
I was hoping the errors would resolve at runtime with the appropriate inclusion of the sctp jar, but this did not work.
I am now trying to compile from the command line so see if that works but since we work in eclipse all the time, I have to figure out compilation in that environment.
From: Chris Hegarty [mailto:chris.hegarty at oracle.com]
Sent: Wednesday, December 15, 2010 12:42 PM
To: Jason Kania
Cc: sctp-dev at openjdk.java.net
Subject: Re: [sctp-dev] Access Restrictions when running
Did you follow these instruction?
If so, can you please include details of the specific failure.
On 15/12/2010 16:58, Jason Kania wrote:
> I am not sure what I have done wrong, and cannot see general
> instructions to address this, but in attempting to compile or run the
> SCTP code in java 6, I am encountering access restrictions.
> The "Access restriction" issues occur in trying to access some core java
> classes in rt.jar used by sctp despite running the code with
> -Xbootclasspath/a:<path to sctp6.jar>. The classes in sctp6.jar are
> accessible, but not the ones that the library is attempting to call.
> I did not observe any compile flag or anything else that would resolve this.
> Do I need to place the jar in a specific location?
> Do I need compile flags to allow the compilation?
> Am I using the wrong instance of the compiler?
> From the instructions, I did not understand and this is my first
> attempt at extending the classes in this manner.
> Any clarifications would be appreciated.
More information about the sctp-dev