(Original) How can I solve the issue of "segmentation fault" When preverify is used? (OS) (Linux) (centos) (Java) (j2e-midp)

Source: Internet
Author: User

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 ]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.