I'm trying to resolve the imports in vscode:
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
I downloaded a json jar (I renamed it to json-simple) but am not sure how to link it to the project
I've already put it in my java projects referenced libraries folder
I've tried to put it in my launch.json but it says java.lang.module.FindException: Module json-simple not found
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "App",
"request": "launch",
"mainClass": "App",
"projectName": "reservation_a81c0dcd",
"vmArgs": "--module-path \"C:/Java/openjfx-19.0.2.1_windows-x64_bin-sdk/javafx-sdk-19.0.2.1/lib\" --add-modules javafx.controls,javafx.fxml,json-simple"
}
]
}
Any help would be appreciated!