错误预验证类 – Java / Eclipse / Blackberry
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了错误预验证类 – Java / Eclipse / Blackberry,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1861字,纯文字阅读大概需要3分钟。
内容图文
![错误预验证类 – Java / Eclipse / Blackberry](/upload/InfoBanner/zyjiaocheng/821/47116342c86d4f9284e010111595d1c1.jpg)
我使用Eclipse的单个工作区在同一工作区中有两个项目.
Project1 – 引用项目#2,还包含项目2的“Java构建路径”
Project2 – 没有引用任何内容
Project1包称为Project1
Project2 pacakge被称为Proejct2
我使用以下方法将Projec2导入Project1:
import Project2.ClassName
编译时我收到错误:
Error preverifying class Project1.Launcher Project1 line 0 BlackBerry Java Problem
Error!: Error: preverifier failed: C:\Users\footose\Desktop\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\prev ... Project1 line 0 BlackBerry Java Problem
任何建议都会很棒
解决方法:
这可能是因为您正在使用的net.rim.eide库中未正确完成预验证步骤.
这个帖子实际上建议到preverify the library independently,甚至为每个班级做预先验证过程(如here所做)!
注意:preverification是:
a phase in the development and deployment cycle for Java applications designed to run on the 07003 (Connected Limited Device Configuration).
Preverification performs certain checks on the Java bytecodes ahead of runtime.
If this first verification pass is ok, the preverifier annotates the classfiles (using standard Java bytecode “attributes”, so that these are still plain old Java bytecodes and will be executable in VMs not aware of the benefits of preverification), and then saves the annotated class files or passes them along to the next tool in the compile chain.When the 07004 attempts to run execute a J2ME CLDC-based application, it checks the Java class files for these preverification annotations. Proper annotations in the class files guarantee that certain compile-time checks were made, and so the KVM can pass through its own verfication and security checks much faster and start executing the application more quickly.
Sun’s CLDC reference implementation SDK includes the ‘preverify’ tool. You use the tool after compiling your code via javac (or your favorite Java compiler).
内容总结
以上是互联网集市为您收集整理的错误预验证类 – Java / Eclipse / Blackberry全部内容,希望文章能够帮你解决错误预验证类 – Java / Eclipse / Blackberry所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。