java.lang.NoClassDefFoundError: org/json/JSONObject
以下來自Stack OverFlow,親測可用
For Classpath reference: Right click on project in Eclipse -> Buildpath -> Configure Build path -> Java Build Path (left Pane) -> Libraries(Tab) -> Add External Jars -> Select your jar and select OK.
For Deployment Assembly: Right click on WAR in eclipse-> Buildpath -> Configure Build path -> Deployment Assembly (left Pane) -> Add -> External file system -> Add -> Select your jar -> Add -> Finish.
This is the proper way! Don’t forget to remove environment variable. It is not required now.
有時間看下Maven。
Try this. Surely it will work. Try to use Maven, it will simplify you task.
相關文章
- ClassNotFoundException: org.json.JSONObject解決辦法ExceptionJSONObject
- 遭遇java.lang.NoClassDefFoundError:org/apache/tomcat/PeriodicEventListenerJavaErrorApacheTomcat
- java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSessionFactoryJavaErrorApacheBATSessionSQL
- 【JSON解析】淺談JSONObject的使用JSONObject
- JSONObject與JSONArray 解析JSON格式字串JSONObject字串
- is java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport錯誤原因JavaErrorSpringFramework
- 報錯:nested exception is java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8BufferExceptionJavaError
- Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnecExceptionthreadAIJavaErrorApacheHTTP
- Maven Web專案 java.lang.NoClassDefFoundError: org/springframework/core/NestedRuntimeException錯誤MavenWebJavaErrorSpringFrameworkException
- 字串json陣列怎麼轉換成jsonobject型別字串JSON陣列Object型別
- spark讀取hive異常,java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunningSparkHiveJavaErrorApacheAPISession
- Java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解決方案JavaErrorApache
- JSONObject.parseObject 、JSONObject.toJSONStringJSONObject
- 匯出Excel過程中遇到的問題java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlExceptionExcelJavaErrorApacheXMLBeanException
- Json和Map互轉,三個包(org.json/net.sf.json/com.google.gson)JSONGo
- JSONObject 原始碼JSONObject原始碼
- 整合SSM框架,啟動時報錯java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonProcessingExceptionSSM框架JavaErrorJSONException
- Java.Lang.NoclassdeffounderrorJavaError
- List集合轉JSONObjectJSONObject
- JSONObject和JSONArrayJSONObject
- JSON物件中的JSONObject和JSONArray以及與Map、String、陣列的轉化JSON物件Object陣列
- JSONObject應用Json字串和Object物件之間的轉換,Map封裝資料思路JSONObject字串物件封裝
- JSONObject的過濾設定JSONObject
- JSONObject的toBean 和 fromObject (轉)JSONObjectBean
- JSONObject與JSONArray的使用JSONObject
- Gson轉換與JSONObject區別JSONObject
- JsonArray和JsonObject遍歷方法JSONObject
- 如何區分jsonarray 和 jsonobjectJSONObject
- java.lang.NoClassDefFoundError: weblogic/WLSTJavaErrorWeb
- Exception in thread "main" java.lang.NoClassDefFoundErrorExceptionthreadAIJavaError
- Caused by: java.lang.NoClassDefFoundError: javax/persistence/EntityListenersJavaError
- Android中java.lang.NoClassDefFoundError (2)AndroidJavaError
- issue: java.lang.NoClassDefFoundError: javax/el/ELManagerJavaError
- ORG 偽指令
- Caused by: java.lang.NoClassDefFoundError: javax/servlet/GenericFilterJavaErrorServletFilter
- springboot報錯java.lang.NoClassDefFoundErrorSpring BootJavaError
- java.lang.NoClassDefFoundError:javax/servlet/ServletContextJavaErrorServletContext
- DBCA啟動報錯Java.Lang.NoclassdeffounderrorJavaError