#Trying to import json-simple to javafx project

1 messages · Page 1 of 1 (latest)

near vector
#

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!

calm gyroBOT
#

<@&987246487241105418> please have a look, thanks.

calm gyroBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

near vector
#

nvm i figured it out