Probably because the bank you are importing has restriction rules.
You can disable them by disabling them. Either globally, or simply on the desired project.
It should be something like: -
- Right click on the project
- Select "Project Properties"
- Select the Java Compiler-> Error / Warnings page
- Enable project specific settings
- Deprecated and restricted API-> Forbidden Directory (access rules). ---> set to ignore
source share