Abstract
The main function of preverify is to check whether the class originally passed in j2se has been set to normal rows in MIDP. However, as the simplest helloworld. class, "segmentation fault" occurs.
Introduction
Migration environment: centos 5.1 + j2se 1.4.2.17 + j2cldc 1.1 + μClinux 20070130
The most simple helloworld, with preverify, shows the following warning messages.
[ Root @ localhost uClinux ] #./Preverify-classpath classes.zip-verbose helloworld
[ Output directory for verified classes: Output ]
Segmentation fault
Solution
Step 1:
Show your current license system
[ Root @ localhost uClinux ] # Echo $ Lang
En_us.utf- 8
Regardless of whether you use Chinese or English, as long as you use a UTF-8, this warning message appears.
Step 2:
Change the temporary data to another temporary data system
[ Root @ localhost uClinux ] # Export Lang = En_us.iso8859- 1
[ Root @ localhost uClinux ] # Echo $ Lang
En_us.iso8859- 1
Step 3:
Row preverify
[ Root @ localhost 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 ]