J2ME 项目中的 json.me 出现错误
嘿嗨朋友们, 我正在从事 J2ME 项目 &我在项目中使用了 Json.me,但是当我在类文件中导入了 org.json.me.* 时,尝试编译它,它显示警告&构建失败。 我不知道这是怎么回事。 这是警告&构建失败......
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: there were 17 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars'),
or perhaps the '-dontskipnonpubliclibraryclasses' option.
Error: Please correct the above warnings first.
D:\Sajid\\Workspace_netbean\JGame\nbproject\build-impl.xml:432: Obfuscation failed with error code 1.
BUILD FAILED (total time: 2 seconds)
任何人都可以帮助我...... 谢谢
Hey Hi Friends,
I am working on J2ME project & I have used Json.me in project but when I have imported the org.json.me.* in my class file & try to compile it, it shows warnings & Build failed.
What happening with this I don't know.
This is Warnings & Build Failed....
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONTokener: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONArray: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: org.json.me.JSONObject: can't find referenced class java.lang.StringBuilder
Warning: there were 17 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars'),
or perhaps the '-dontskipnonpubliclibraryclasses' option.
Error: Please correct the above warnings first.
D:\Sajid\\Workspace_netbean\JGame\nbproject\build-impl.xml:432: Obfuscation failed with error code 1.
BUILD FAILED (total time: 2 seconds)
Can any one help me please....
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜你有一个旧版本的 Java,比如 1.4.2 左右。 StringBuilder 在 1.5 版本中引入。
I guess you have an old version of Java, like 1.4.2 or so. StringBuilder was introduced in in version 1.5.