Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json
免费下载资源
·
小记:
使用ormlite 创建配置文件的时候, 提示
### begin...
Writing configurations to D:\zeng\workspace5_31\xFinal\.\res\raw\ormlite_config.txt
Wrote config for class com.xxx.model.User
Wrote config for class com.xxx.model.Catalog
Wrote config for class com.xxx.model.Product
Wrote config for class com.xxx.model.GroupGoods
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.writeConfigForTable(OrmLiteConfigUtil.java:220)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.writeConfigFile(OrmLiteConfigUtil.java:144)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.writeConfigFile(OrmLiteConfigUtil.java:133)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.writeConfigFile(OrmLiteConfigUtil.java:124)
at com.xijiu.shop.ormlite.TableUtil.main(TableUtil.java:23)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 8 more
具体原因不详......
1、类里面有内部类,2 、public List<TestObj> getImg() {
我的问题是2,里面有一个方法这样.... 注释就ok,,,, 具体不知道- -
GitHub 加速计划 / js / json
18
5
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:2 个月前 )
960b763e
5 个月前
8c391e04
8 个月前
更多推荐
已为社区贡献1条内容
所有评论(0)