Results 1 to 2 of 2
Thread: Error: Access restriction
- 10-16-2009, 05:23 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 18
- Rep Power
- 0
Error: Access restriction
My program use javax.comm.*.
The progam worked just fine with eclipse, and I had a problem to execute
it wit a bat file (didn't solve that problem yet). I've changed classpath and copied comm.jar to many libraries, and suddenly the error below appear.
I have this error
"Access restriction: The type CommPortIdentifier is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\comm.jar"
When I look at that library comm.jar is there.
thanks for any help
- 11-25-2009, 06:53 PM #2
Member
- Join Date
- Nov 2009
- Posts
- 1
- Rep Power
- 0
Hi,
You can probably try this -
Go to Build path -> Configure Build path and follow the below steps.
1) expand the comm.jar
2) Select "Access rules" and click Edit Button
3) Click Add button in the newly opened dialog.
4) Select "Acceessible" and enter value "**"
5) OK
6) Clean build the project.
Plese get back to me if solved.
Similar Threads
-
Getting access denied error while importing file using input type="file" with IE7
By sarang1 in forum Advanced JavaReplies: 6Last Post: 02-10-2011, 09:55 AM -
[SOLVED] Access Denied error using FileInputStream
By xcallmejudasx in forum New To JavaReplies: 8Last Post: 05-21-2009, 04:13 AM -
getting following error org.eclipse.swt.SWTException: Invalid thread access
By Madhavee Latha in forum SWT / JFaceReplies: 1Last Post: 03-24-2009, 12:52 PM -
Can we lift the images restriction?
By Cyorxamp in forum Suggestions & FeedbackReplies: 30Last Post: 07-01-2008, 08:32 AM -
Error: Cannot access protected member long getTimeInMillis() in class Calendar
By cachi in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 07:53 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks