J2ME 项目中的 json.me 出现错误

发布于 2024-10-21 17:15:27 字数 2036 浏览 4 评论 0原文

嘿嗨朋友们, 我正在从事 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过去的过去 2024-10-28 17:15:27

我猜你有一个旧版本的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文