JAVA QUESTION when i try to import something in java and sys

JAVA QUESTION

when i try to import something in java

and system show me that

\"Access restriction: The type \'Application\' is not API (restriction on required library \'C:\\Program Files\\Java\\jre1.8.0_111\\lib\\ext\\jfxrt.jar\')\"

how to fix this problem?

Solution

To fix this problem you have to change the access restrictions..

first go to the properties of your java project..

select>> \"Properties\" ----option from the (context menu of the project)in --- Package Explorer

Next -- go to----->>> \"Java Build Path\",

tab >>>\"Libraries\"., here you have to expand the---->>> Library Entry

select>> Access rules ...

then click on>>Edit

and Add a >>> Resolution: Accessible >>>>with corresponding rule pattern..

pattern like

\"javax/smartcardio/**\"

or

\"com/apple/eawt/**\"

JAVA QUESTION when i try to import something in java and system show me that \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site