JSONObject ClassNotFoundException

后端 未结 3 940
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 11:21

I am working in IntelliJ and using Maven. I have a class that uses JSONObject:

import org.json.JSONObject;

try {
  JSONObject documentObj = new          


        
3条回答
  •  -上瘾入骨i
    2020-12-31 12:10

    Add json jar to your classpath

    or use java -classpath json.jar ClassName

    Or add this to your maven pom.xml depedencies:

    
        org.json
        json
        20090211
    
    

提交回复
热议问题