I have seen this question asked and answered a few times for Java being compiled in Eclipse. In my case, I don't have Eclipse. I want to get my project compiled using VS Code. I'm hoping there is a file I can create or edit to override this error message:
Access restriction: The type 'Pair' is not API (restriction on required library 'C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\jfxrt.jar')Java(16777523)
Any help appreciated.
In my project the .settings\org.eclipse.buildship.core.prefs contains
connection.project.dir=../..
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.problem.forbiddenReference=ignore
PS My project uses gradle.