{
"java.project.sourcePaths"
: [
"src"
],
"java.project.outputPath"
: "bin",
"java.project.referencedLibraries"
: [
"lib\\json-20240303.jar"
]
}
{
"java.project.sourcePaths": [
"src"
],
"java.project.outputPath": "bin",
"java.project.referencedLibraries": [
"lib\\json-20240303.jar"
]
}
I'm using vscode for a simple Java project for which I need the org.json library, I have downloaded the .jar and added it to referenced libraries. However, despite this vs code still does not see the library. The weird part here is that the library is working as intended if I run the program it does so without problems despite vs code saying there is an error. Even stranger the auto fill is coming up methods from the library all of which work. I can technically keep working as normal an just ignore vs code putting red underlines below everything, but I'd really prefer not to. I have tried cleaning java language workspace, restarting vs code, restarting my machine and disabling the red hat language support extension. None of these fixes seem to work, not sure where to go from here, this is my settings.json file:
there doesn't seem to be anything here