When I try to run import org.json.simple.JSONObject;
, I get an error saying
the type org.json.simple.JSONObject is not accessible
If I try to change it to import org.json.simple.*;
, I still get an error saying the package is not accessible. I have included json-simple-1.1.1.jar in my classpath.
json-simple in my classpath
I also tried to make my project a Maven project and add it as a dependency there, but it was of no use.
The last comment in this mentions that compiling using Java 13 helped him, so I changed my execution environment to JavaSE-13, but that did not solve the issue either.