- 浏览: 2054881 次
- 性别:
- 来自: 广州
-
文章分类
社区版块
- ( 84)
- ( 634)
- ( 15)
最新评论
-
ratlsun:
想请教下uc最新版本在android4.2和4.3版本上是不是 ...
uc浏览器8.3 (for iphone)设计理念.“無”为而设 -
gly0920sky520123:
很有用哦,谢谢
dos命令大全(经典收藏) -
:
uc加油,花哥加油~
uc浏览器8.3 (for iphone)设计理念.“無”为而设 -
cnliuyix:
lz搞点更有层次的吧,介个一般工程里根本用不到这么简单的。si ...
android 设计一个可单选,多选的demo -
gang4415:
[email protected]
jsr规范,系统参数测试大全
blackberry 出现 module xxx' has verification error 问题解决办法
如果是midlet请看官方的解释:
我使用的不是midlet同样出现了问题,
http://supportforums.blackberry.com/t5/java-development/verification-error-1756/td-p/125387
那么引起verification error的原因是使用了xxx.class代码,
比如:
- eventmanager.registerlistener(new eventtypefilter(this, new class[]{
- myeventobject.class
- }));
上面的代码就不行,虽然rim api说支持,但依然出现了问题,改写成下面的:
- eventmanager.registerlistener(new eventtypefilter(this, new class[]{
- new myeventobject().getclass()
- }));
就可以了。
另外还有其他的的原因,我从csdn转来的,保存一下吧。
when developing java applications for the blackberry smartphone, you may encounter any of the following verification errors or errors similar to the following:
- verification error 3141
- module 'mymidlet' has verification error (<###>) at offset <###>.
- error starting mymidlet: module 'mymidlet' has verification error (<####>) at offset <###>."
these errors often occur when creating midlets. they are inherently hard to debug because the same error message can apply to a number of problems.
the following is a list of possible solutions to prevent or correct verification errors:
- if you started by building a java archive (jar) file and then used the rim application program compiler (rapc) to create .cod files, make sure you turn obfuscation off when building the jar file. the rapc compiler performs its own obfuscation and issues may occur if the code is already obfuscated.
- remove any
system.out.*
calls. these generally do nothing on the blackberry smartphone, but they might cause verification errors. - remove unused
import
statements. - explicitly specify the access for each function or variable. for example, make sure each one is specified as
public
,private
, orprotected
. - if you are working with a midlet, make sure the midlet class is declared as
public
. - verification errors may occur if the cod file is corrupted or if it was not signed correctly. make sure that you perform a clean rebuild and that you re-sign your application. reinstall the application on the blackberry smartphone.
- comment out any non-executable code. verification errors might be related to the size of the main code file and the library files. if you comment out non-executable code, the file sizes change, which may correct the problem.
- if you have created any classes that inherit from rim classes, change the name of any custom methods and members that you created in those classes. this makes sure that you have not named any methods or members of the same name in the internal rim classes.
- if your application is using blackberry® device software 3.8 or later, verification errors occur when an application that implements the
javax.microedition.rms.recordstore
class is compiled using blackberry® java® development environment (blackberry jde) earlier than version 4.0. this occurs if the application uses either theaddrecordlistener
orremoverecordlistener
methods of therecordstore
class. to resolve this issue, recompile the application using blackberry jde 4.0 or later. - there is a problem with how the blackberry® java® virtual machine (blackberry jvm) handles the referencing of a class directly within the constructor of another class. the following is an example:
- remove references to a static instance variable from an inner class. for example, the following code example could cause an error:
- the build procedure normally compiles from the java source file with the
javac
command, and then runs preverify.exe file and then rapc. add the following command line arguments tojavac
to help avoid issues in earlier versions of the rapc: - some methods that are very long can cause verification errors. by breaking these methods into helper methods, you can reduce the likelihood of verification errors.
- although not as likely, some very long method definitions (with 10 or more parameters), and some very long constant definitions (long package structure and/or long names) can also cause verification errors.
class1 class1= new class1(class2.class.getname());
to work around this issue, do not make the class call within a constructor as shown in the following example:
class1 class1;
string classname = class2.class.getname();
class1 = new class1(classname);
public class myouterclass {
static int var;
class myinnerclass {
public void dosomething() {
var = 7;
}
}
}
there are a few ways you can remove these references, such as creating get/set
methods for var
in the outer class or modifying the logic to pull myinnerclass
out of myouterclass
.
javac.exe -source 1.3 -target 1.1
相关推荐
verification by error modeling
主要介绍了jenkins host key verification failed问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
functional verification is an art as much as a science. it requires not only creativity and cunning, but also a clear methodology to approach the problem. the open verification methodology (ovm) is a ...
this book should be the first one you read to learn the systemverilog verification language constructs. it describes how the language works and includes many examples on how to build a basic coverage-...
verification with c
system_verification_using_soundcheck
cluster verification utility (cvu) 是一个随 oracle grid infrastructure/oracle clusterware 发布的实用程序。开发此实用程序是为了帮助进行 oracle clusterware 和 oracle real application clusters (rac) 的...
hardware design verification simulation
systemverilog for verification 2nd
hardware verification with systemverilog 作者 的另一本力作。很详细地讲解了如何使用面向对象以及 层次的概念来用到hardware verification中
basic of layout verification
ansys mechanical apdl verification manual
formal verification in english
hardware.design.verification.simulation.and.formal.method.based.approaches pdf版本,带目录
verificationcode.rar,verificationcode,verificationcode.sln,verificationcode,form1.cs,bin,debug,verificationcode.exe.config,verificationcode.pdb,verificationcode.exe,obj,debug,...verificationcode.csproj....
to succeed, today's asics must have a comprehensive verification plan. a detailed document that spells out how to attack the overall task of verification is necessary. this paper details how to jump-...
在1990年代后期,verilog硬件描述语言(hdl)成为描述仿真和综合硬件的最广泛使用的语言。 但是,ieee标准化的前两个版本(1364-1995和1364-2001)仅具有用于创建测试的简单结构。 随着设计规模超过该语言的验证功能...
standardized functional verification