×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Angry preverify error. PLZ HELP

    I am tryin to build one of the nokia examples from the MIDP_2_0_Introduction_to_Using_Sockets_and_Datagrams_v1_0_en from the nokia forum website and an error comes up when building.

    i am using NetBeans IDE 5.5 with mbility pack 5 and the nokia 3rd edition java sdk.
    when building any of the projects i get the error:

    JAR file creation failed with error -1
    The preverified classes if any are in tmp41.
    C:\sockets\midp2_0\server\ImportedProject-UDPMIDlet1\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    BUILD FAILED (total time: 1 second)
    when i click on the link it takes me to line:

    <nb-preverify srcdir="${obfuscated.classes.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>

    could someone please help. i have looked everywhere for help and cannot find it.

  2. #2
    Regular Contributor
    Join Date
    May 2003
    Posts
    58

    Re: preverify error. PLZ HELP

    Do you have a jar file in your src or resources directory?

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    no there is no jar file in the source file.
    i directly import the project using the create new project with existing build file.

  4. #4
    Regular Contributor
    Join Date
    May 2003
    Posts
    58

    Re: preverify error. PLZ HELP

    Would it be possible to get an access to your sources so we can reproduce the problem?

  5. #5
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    the sources are all from the nokia forum website
    the current one i am using is MIDP_2_0_Introduction_to_Using_Sockets_and_Datagrams_v1_0_1.zip.

  6. #6
    Regular Contributor
    Join Date
    May 2003
    Posts
    58

    Re: preverify error. PLZ HELP

    It works on my machine. Could you turn on ant verbose output in Tools | Options | Misc | Ant to see more details. Also you should see exact command line in the output, could you run the same command from command line?

  7. #7
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    JAR file creation failed with error -1
    The preverified classes if any are in tmp41.
    C:\Documents and Settings\Michael\Desktop\hellow\ImportedProject-MediaSampler\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    at org.netbeans.modules.kjava.antext.PreverifyTask.execute(PreverifyTask.java:171)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)


    this is the error i get with ant on verbose mode.

  8. #8
    Regular Contributor
    Join Date
    May 2003
    Posts
    58

    Re: preverify error. PLZ HELP

    Could you send me the whole output? Does the same problem happen when building other projects? Projects created in NetBeans, not imported? What is your OS, locale? Whatever information that would help us to reproduce the problem.

  9. #9
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    This is the output given when the project is compliled. the OS is windows XP service pack 2. doesnt happen when building a project in netbeans. only when importing one.


    couldnt insert the entire output. was to many characters. this is the end

    post-compile:
    Exiting C:\midlets\ImportedProject-TCPMIDlet1\build.xml.
    obfuscate-check:
    README.txt omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    TCPForm.class added as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is outdated.
    TCPHandler$1.class added as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is outdated.
    TCPHandler.class added as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is outdated.
    TCPHandlerListener.class added as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is outdated.
    TCPMIDlet.class added as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is outdated.
    TCPMIDlet.jad omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    TCPMIDlet.jar omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    TCPMIDlet.jpx omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    TCPMIDlet.jpx.local omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    build.properties omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    build.xml omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    check.sh omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    res\icon.png omitted as C:/midlets/ImportedProject-TCPMIDlet1/build/obfuscated.jar is up to date.
    pre-obfuscate:
    obfuscate:
    classes omitted as classes/ is up to date.
    res omitted as res/ is up to date.
    src omitted as src/ is up to date.
    README.txt omitted as README.txt is up to date.
    TCPForm.class added as TCPForm.class is outdated.
    TCPHandler$1.class added as TCPHandler$1.class is outdated.
    TCPHandler.class added as TCPHandler.class is outdated.
    TCPHandlerListener.class added as TCPHandlerListener.class is outdated.
    TCPMIDlet.class added as TCPMIDlet.class is outdated.
    TCPMIDlet.jad omitted as TCPMIDlet.jad is up to date.
    TCPMIDlet.jar omitted as TCPMIDlet.jar is up to date.
    TCPMIDlet.jpx omitted as TCPMIDlet.jpx is up to date.
    TCPMIDlet.jpx.local omitted as TCPMIDlet.jpx.local is up to date.
    build.properties omitted as build.properties is up to date.
    build.xml omitted as build.xml is up to date.
    check.sh omitted as check.sh is up to date.
    res\icon.png omitted as res/icon.png is up to date.
    Building jar: C:\midlets\ImportedProject-TCPMIDlet1\build\before-obfuscation.jar
    adding directory META-INF/
    adding entry META-INF/MANIFEST.MF
    adding directory classes/
    adding directory res/
    adding directory src/
    adding entry README.txt
    adding entry TCPForm.class
    adding entry TCPHandler$1.class
    adding entry TCPHandler.class
    adding entry TCPHandlerListener.class
    adding entry TCPMIDlet.class
    adding entry TCPMIDlet.jad
    adding entry TCPMIDlet.jar
    adding entry TCPMIDlet.jpx
    adding entry TCPMIDlet.jpx.local
    adding entry build.properties
    adding entry build.xml
    adding entry check.sh
    adding entry res/icon.png
    Override ignored for property obfuscation.custom
    Copying jar file (C:\midlets\ImportedProject-TCPMIDlet1\build\before-obfuscation.jar) to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated.jar.
    Expanding: C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated.jar into C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated
    expanding res/icon.png to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\res\icon.png
    expanding check.sh to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\check.sh
    expanding TCPHandler$1.class to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPHandler$1.class
    expanding TCPForm.class to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPForm.class
    expanding README.txt to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\README.txt
    expanding src/ to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\src
    expanding res/ to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\res
    expanding classes/ to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\classes
    expanding META-INF/MANIFEST.MF to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\META-INF\MANIFEST.MF
    expanding META-INF/ to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\META-INF
    expanding TCPHandler.class to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPHandler.class
    expanding TCPHandlerListener.class to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPHandlerListener.class
    expanding TCPMIDlet.class to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPMIDlet.class
    expanding TCPMIDlet.jad to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPMIDlet.jad
    expanding TCPMIDlet.jar to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPMIDlet.jar
    expanding TCPMIDlet.jpx to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPMIDlet.jpx
    expanding TCPMIDlet.jpx.local to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\TCPMIDlet.jpx.local
    expanding build.properties to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\build.properties
    expanding build.xml to C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated\build.xml
    expand complete
    Project base dir set to: C:\midlets\ImportedProject-TCPMIDlet1
    calling target(s) [post-obfuscate] in build file C:\midlets\ImportedProject-TCPMIDlet1\build.xml
    parsing buildfile C:\midlets\ImportedProject-TCPMIDlet1\build.xml with URI = file:///C:/midlets/ImportedProject-TCPMIDlet1/build.xml
    Project base dir set to: C:\midlets\ImportedProject-TCPMIDlet1
    Importing file nbproject/build-impl.xml from C:\midlets\ImportedProject-TCPMIDlet1\build.xml
    parsing buildfile C:\midlets\ImportedProject-TCPMIDlet1\nbproject\build-impl.xml with URI = file:///C:/midlets/ImportedProject-TCPMIDlet1/nbproject/build-impl.xml
    Build sequence for target(s) `post-obfuscate' is [post-obfuscate]
    Complete build sequence is [post-obfuscate, 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, init, pre-preprocess, deps-jar, conditional-clean, preprocess, extract-libs, pre-compile-single, compile-single, javadoc, set-alias-password, pre-compile, compile, obfuscate-check, pre-clean, do-clean, post-deploy, post-init, for-all-configs, rebuild-all, clean, pre-obfuscate, obfuscate, pre-preverify, preverify, create-jad, set-keystore-password, pre-jar, jar, rebuild, nbdebug, run-no-build, add-profile, add-configuration, run, debug, pre-deploy, override-jad, javadoc-all, browse-javadoc, post-preverify, clean-all, post-clean, deploy-all, post-compile, post-preprocess, post-compile-single, deploy, jar-all, post-jar, ]
    Entering C:\midlets\ImportedProject-TCPMIDlet1\build.xml...
    Build sequence for target(s) `post-obfuscate' is [post-obfuscate]
    Complete build sequence is [post-obfuscate, 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, init, pre-preprocess, deps-jar, conditional-clean, preprocess, extract-libs, pre-compile-single, compile-single, javadoc, set-alias-password, pre-compile, compile, obfuscate-check, pre-clean, do-clean, post-deploy, post-init, for-all-configs, rebuild-all, clean, pre-obfuscate, obfuscate, pre-preverify, preverify, create-jad, set-keystore-password, pre-jar, jar, rebuild, nbdebug, run-no-build, add-profile, add-configuration, run, debug, pre-deploy, override-jad, javadoc-all, browse-javadoc, post-preverify, clean-all, post-clean, deploy-all, post-compile, post-preprocess, post-compile-single, deploy, jar-all, post-jar, ]
    post-obfuscate:
    Exiting C:\midlets\ImportedProject-TCPMIDlet1\build.xml.
    pre-preverify:
    preverify:
    Preverifying 15 file(s) into C:\midlets\ImportedProject-TCPMIDlet1\build\preverified directory.
    Executing command line: "C:\S60\devices\S60_3rd_MIDP_SDK_FP1\bin\preverify" -classpath "C:\S60\devices\S60_3rd_MIDP_SDK_FP1\lib\hmidps60v31.jar" -d "C:\midlets\ImportedProject-TCPMIDlet1\build\preverified" "C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated"
    >C:\S60\devices\S60_3rd_MIDP_SDK_FP1\bin\preverify<
    >-classpath<
    >C:\S60\devices\S60_3rd_MIDP_SDK_FP1\lib\hmidps60v31.jar<
    >-d<
    >C:\midlets\ImportedProject-TCPMIDlet1\build\preverified<
    >C:\midlets\ImportedProject-TCPMIDlet1\build\obfuscated<
    JAR file creation failed with error -1
    The preverified classes if any are in tmp41.
    C:\midlets\ImportedProject-TCPMIDlet1\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    at org.netbeans.modules.kjava.antext.PreverifyTask.execute(PreverifyTask.java:171)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
    BUILD FAILED (total time: 1 second)

  10. #10
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Re: preverify error. PLZ HELP

    Some additional files were probably wrongly included during import.
    Please remove all jar and zip files from your source root and take a look into Project Properties category Libraries & Resources. There might be listed a folder containing jar or zip files (in your case it is TCPMIDlet.jar). You can remove this folder from Libraries & Resources and add all required libraries manually or you can remove the jar from the listed folder.
    It is well known preverifier issue that it stops on any jar or zip file present in preverificatin source tree.

  11. #11
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    not sure exactly wat u mean. but i did try removing all zip or jar files associatedx with the folder. there were no files in the librarys folder to begin with

  12. #12
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Re: preverify error. PLZ HELP

    I found following lines in your build log so there is (or was one jar file):

    adding entry TCPMIDlet.jad
    adding entry TCPMIDlet.jar
    adding entry TCPMIDlet.jpx
    adding entry TCPMIDlet.jpx.local
    adding entry build.properties
    adding entry build.xml


    Try to remove all unnecessary files from sources and then clean and build the project again.

  13. #13
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    Thanx I got it to work
    but now i have another problem.
    i edit a .jad file in the templates. the problem is when i buiold the project it doesnt make the changes needed. it keeps the old version of the .jad file

  14. #14
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Re: preverify error. PLZ HELP

    Application descriptor is not taken from the file, it is constructed from project properties during the build. Right-click on project node and open Project Propertins category Application Descriptor.

  15. #15
    Registered User
    Join Date
    Feb 2007
    Posts
    25

    Re: preverify error. PLZ HELP

    thank you very much. all sorted out now

Similar Threads

  1. Preverify after using proguard.
    By benflash in forum Mobile Java General
    Replies: 6
    Last Post: 2007-08-01, 09:25
  2. Flumoxxed by preverify....
    By proxima1 in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-12-14, 02:01
  3. preverify failed
    By walter73 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-01-07, 18:13
  4. preverify problems
    By tpautio in forum Mobile Java General
    Replies: 1
    Last Post: 2003-10-31, 10:36
  5. error: Preverify Compiler uses an invalid emulator
    By nmostafa in forum Mobile Java General
    Replies: 0
    Last Post: 2003-10-13, 14:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×