WEB开发网
开发学院操作系统CentOS CentOS preverify系统安装应用 阅读

CentOS preverify系统安装应用

 2010-05-22 23:01:24 来源:WEB开发网   
核心提示:CentOS preverify更新了很多版本更新,我本人认为CentOS preverify 在CentOS系列里很好使的文件系统,CentOS preverify系统安装应用,在此向大家推荐,如今技术不断更新,[[email protected] uClinux]# ./preverify -classpath clas

CentOS preverify更新了很多版本更新,我本人认为CentOS preverify 在CentOS系列里很好使的文件系统,在此向大家推荐。如今技术不断更新,各种使用文件都已经淘汰。我认为还是有很不错的如CentOS preverify值得大家来运用。如何解决使用CentOS preverify时,出现『Segmentation fault』的错误讯息? (OS) (Linux) (CentOS) (Java) (J2ME) (MIDP)

Abstract
CentOS preverify主要的功能是将原本在J2SE编译过的class,检查是否能在MIDP装置正常执行。但尽管是最简单的HelloWorld.class,也会出现『Segmentation fault』错误。
Introduction
CentOS preverify执行环境:CentOS 5.1 + J2SE 1.4.2.17 + J2ME CLDC 1.1 + μClinux 20070130

最简单的HelloWorld,使用preverify就出现以下错误讯息。
[[email protected] uClinux]# ./preverify -classpath classes.zip -verbose HelloWorld
[Output directory for verified classes: output]
Segmentation fault
Solution

Step 1:
CentOS preverify显示你目前使用的语系
[[email protected] uClinux]# echo $LANG
en_US.UTF-8
无论你使用中文或英文,只要使用了UTF-8,就会出现這個错误讯息。

Step 2:
CentOS preverify暂时改成其他语系
[[email protected] uClinux]# export LANG=en_US.ISO8859-1
[[email protected] uClinux]# echo $LANG
en_US.ISO8859-1

Step 3:
CentOS preverify顺利执行preverify
[[email protected] uClinux]# ./preverify -classpath classes.zip -verbose HelloWorld
[Output directory for verified classes: output]
[Loaded java/lang/Object] from [classes.zip]
[Loaded java/lang/Class] from [classes.zip]
[Loaded java/lang/String] from [classes.zip]
[Loaded java/lang/Throwable] from [classes.zip]
[Loaded java/lang/IllegalArgumentException] from [classes.zip]
[Loaded java/lang/RuntimeException] from [classes.zip]
[Loaded java/lang/Exception] from [classes.zip]
[Loaded java/lang/StringIndexOutOfBoundsException] from [classes.zip]
[Loaded java/lang/IndexOutOfBoundsException] from [classes.zip]
[Loaded java/io/InputStream] from [classes.zip]
[Loaded com/sun/cldc/io/ResourceInputStream] from [classes.zip]
[Loaded ./HelloWorld.class]

Tags:CentOS preverify

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接