ariefbayu
ariefbayu

Reputation: 21979

Preverification failed with error code -2147483645

I was doing some j2mee work on ubuntu linux with Netbeans 6.7.1. I went fine until my notebook broken down. So, I had to move my work on another pc with windows XP on it. All went fine with netbeans settings, etc. However, When I try to build my code, I got error:

E:\silent\kl_stuffs\jagoankomik\nbproject\build-impl.xml:461: Preverification failed with error code -2147483645.

Here's the ant XML snippet (auto generated by netbeans, I don't really know how to create it myself):

<target name="pre-preverify"/>
<target name="do-preverify" if="cldc-platform.trigger">
    <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
    <mkdir dir="${preverify.sources.dir}"/>
    <copy todir="${preverify.sources.dir}">
        <fileset dir="${buildsystem.baton}" includes="**/*.class"/>
    </copy>
    <mkdir dir="${preverify.classes.dir}"/>
    <nb-preverify srcdir="${preverify.sources.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}:${extra.classpath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>
    <copy todir="${preverify.classes.dir}">
        <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
    </copy>
    <nb-overrideproperty name="buildsystem.baton" value="${preverify.classes.dir}"/>
</target>
<target name="post-preverify"/>

My question is, how do I work around this? because I got no result from google:(. If possible, I want to skip preverify section. Do you guys know how to do this?

UPDATE: As requested, here's full build log:

pre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration:
exists.platform.profile:
basic-init:
cldc-pre-init:
cldc-init:
cdc-init:
ricoh-pre-init:
ricoh-init:
semc-pre-init:
semc-init:
savaje-pre-init:
savaje-init:
sjmc-pre-init:
sjmc-init:
cdc-hi-pre-init:
cdc-hi-init:
nokiaS80-pre-init:
nokiaS80-init:
nsicom-pre-init:
nsicom-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
deps-jar:
pre-preprocess:
do-preprocess:
Pre-processing 0 file(s) into E:\silent\kl_stuffs\jagoankomik\build\preprocessed directory.
post-preprocess:
preprocess:
pre-compile:
extract-libs:
do-compile:
post-compile:
compile:
pre-obfuscate:
proguard-init:
skip-obfuscation:
proguard:
post-obfuscate:
obfuscate:
lwuit-build:
pre-preverify:
do-preverify:
Preverifying 6 file(s) into E:\silent\kl_stuffs\jagoankomik\build\preverified directory.
E:\silent\kl_stuffs\jagoankomik\nbproject\build-impl.xml:461: Preverification failed with error code -2147483645.
BUILD FAILED (total time: 0 seconds)

Upvotes: 1

Views: 2445

Answers (2)

Peg
Peg

Reputation: 1

I had the same problem, the cause was that I had made a mistake writing the name of the package in the first line of my java classes (I used a Capital letter and not the normal letter!).

NOTE : Another information that I've gathered from other forum posts: the same problem could arise if you have set CLDC1.0 for your project, you should try instead CLDC1.1

Upvotes: 0

Paul Milovanov
Paul Milovanov

Reputation: 766

Unfortunately, you can't skip preverification for j2me builds -- so you'll have to find a way to resolve this issue. Here's one of the first few google hits explaining what preverification is and why it's important: http://www.jguru.com/faq/view.jsp?EID=201507

A few thoughts re: your log:

1) so it seems like netbeans is running ant for builds there -- you should be able to enable verbose mode equivalent to running ant from console with -v param. That might shed some light on what's going on

2) This thread (http://forums.sun.com/thread.jspa?threadID=5374546) indicates that obfuscation settings may be causing something like that.

3) Actually -- just thought about this: do you have preverify installed on your windows machine in the first place? Search for preverify and see if it's anywhere to be found. Then make sure that Netbeans knows where to look for preverify. If you don't have it, you should install it as a part of whatever J2ME SDK you're using.

Upvotes: 1

Related Questions