JSONObject ClassNotFoundException
I am working in IntelliJ and using maven. I have a class that uses JSONObject, and I have imported it import org.json.JSONObject; and in a method I use it like so: JSONObject documentObj = null; try { documentObj = new JSONObject(document); } catch (Exception e) { throw new RuntimeException("Failed to convert JSON String document into a JSON Object.", e); } I also have the dependency in the pom.xml file <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20090211</version> </dependency> I can "mvn clean package" this code and everything builds successfully. But when