Home > database >  VS Code - The import "#####" cannot be resolved
VS Code - The import "#####" cannot be resolved

Time:11-24

So, i am running a java project which have many library that are available in the current working directory but VS code seems to not recognize these library and giving out error "The import ###### cannot be resolved" ex: The import org.apache.pdfbox.pdmodel.PDDocument cannot be resolved"

here is the image that might help you to know more about it enter image description here

Or use java.project.referencedLibraries setting in settings.json.

For example:

"java.project.referencedLibraries": [
    "library/**/*.jar",
    "/home/username/lib/foo.jar"
]

Details can be found in configure-classpath and manage-dependencies.

  • Related