如何在 Sun Java Wireless Toolkit 2.5.2 中创建混淆包?
我想为我的 j2me 应用程序创建混淆包以提高大小和性能。因此,我从 sourgeforge.net 下载了 proguard
。我已将 proguard.jar
放入我的 C:\WTK2.5.2_01\bin
文件夹中。
当我尝试从 project->package->Create Obfuscation package
创建混淆包时,它引发了以下异常
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error: C:\Documents (The system cannot find the file specified)
Obfuscation failed.
Build failed
那么,此错误消息的原因是什么以及如何混淆我的应用程序?
I would like to create obfuscated package of my j2me application for improving the size and performance.So, I have downloaded proguard
from sourgeforge.net. I have put the proguard.jar
into my C:\WTK2.5.2_01\bin
folder.
When I try to create obfuscated package from project->package->Create Obfuscation package
it raised the following exception
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error: C:\Documents (The system cannot find the file specified)
Obfuscation failed.
Build failed
So, What is the cause of this error message and How do I obfuscate my application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该确保您使用的是 ProGuard 自己的 WTK 插件,而不是来自 Oracle/Sun 的插件(该插件存在路径名中的空格问题)。比照。 ProGuard 手册 > JME WTK。
You should make sure you are using ProGuard's own WTK plugin, not the one from Oracle/Sun (which has a problem with spaces in path names). Cfr. ProGuard manual > JME WTK.
在j2me中混淆需要混淆工具。Progaurd是很好的混淆工具之一。
你应该在你的系统中安装proguard。然后你进入无线工具包,选择首选项,然后混淆设置,指定混淆工具路径(你的progaurd安装在你的系统proguard路径中)。
然后创建项目后,创建源文件后。要创建jar/jad,您应该选择create package 4m wtk(wirless tool kit),而不是选择create package,选择“Create obfuscating /create obfuscation package”。然后是jad/jar是用混淆文件创建的。
混淆与普通java相同
In j2me obfuscation requires Obfuscation tool.Progaurd is one of the good obfuscation tool.
U should install proguard in ur system.Then u goto Wirless toolkit ,select preferences,then the obfuscation setting, specifying the obfuscation tool path (Where ur progaurd in installed in ur system-proguard path).
Then after creating a project,after creating source file.For creating jar/jad u should select create package 4m wtk(wirless tool kit),instead of selecting create package,select "Create obfuscating /create obfuscation package" .Then the jad/jar is created with obfuscation files.
The obfuscation is same as normal java