Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User axilaris's Avatar
    Join Date
    Jul 2008
    Posts
    19
    Hi,

    Bare with me I am a beginner with J2ME.

    I was trying to learn eSWT and tried the tutorial from this webpage
    http://www.ibm.com/developerworks/ed...ipse-eswt.html

    Having download the sample code, I tried to import it into EclipseME.
    Since the sample code is using MTJ, I use the J2ME convert to remove the errors.

    1. Question: How do you actually build in Eclipse?

    2. I tried to Create J2ME package, this error appear:

    Errors during build.
    Errors running builder 'Preverification' on project 'org.eclipse.eswt.sudoku'.
    java.lang.NullPointerException encountered while running Preverification.
    java.lang.NullPointerException

    3. I tried to debug it, it says failed with Symbian error code: -15


    Please help! how can i fix or troubleshoot this error? Thanks.

  2. #2
    Super Contributor prakash.raman's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539
    Hi, before packaging jar for j2me, preverification is done. So my first guess is that u have not set proper paths in eclipse for WTK or ur eclipse dont have J2ME plugin installed into it. If still u getting then u might be using some feature in ur code which preverifier is unable to use. For this u can check all the classes and methods u are using are of j2me specification.
    au revoir
    Prakash Raman

  3. #3
    Nokia Developer Champion jitu_goldie's Avatar
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330
    on which sdk r u working. can u try ur code in wtk2.5 by aking a separate project? check for same error will occur or not?
    thanks,
    jitu_goldie..

    KEEP TRYING..

  4. #4
    Registered User axilaris's Avatar
    Join Date
    Jul 2008
    Posts
    19
    Hi,

    I am using
    - S60 5th edition version 1.0.
    - eclipse 3.3.0 (i tried 3.2.2 also same problem)
    - WTK 2.5.2_01

    how can i troubleshoot this issue? j2me eclipse is a bit funny to me, if with C++ i can compile and see the errors but i cant compile with j2me right? atleast no errors when i save the files.
    what is preverification?

    thanks in advance.

  5. #5
    Nokia Developer Champion jitu_goldie's Avatar
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330
    Please checkout the link shows how to create j2me project with eclipse. follow the instructions shown at above discussed link create a new project and run it with default emulator of wtk2.5 or more. Just avoid any sdk regarding nokia or else.. check for same error.
    Also please checkout the link shown below:
    http://web.mit.edu/bentley/www/mobile/j2meguide/
    this will guide u how to get familiar with eclipse for J2ME..

    Please try with the new sample project and reply for result..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  6. #6
    Registered User axilaris's Avatar
    Join Date
    Jul 2008
    Posts
    19
    Thanks but I already done the setting stage.

    Now, what I am trying to do is to see how other applications are programmed in j2me to understand a bit more.
    My problem is these sample codes that I download doesnt seem to work in my environment.

    Ok, lets take another example.

    1. I downloaded this sample code
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html
    2. copy to workspace
    3. Import TouristRoute
    4. J2ME->Convert to J2ME choose WTK2.5.2
    6. change build configuration to s60 5th edition
    7. i still see red X at the package explorer. no idea what is it.
    8. when i choose debug as, i cant see touristroute in the wireless toolkit emulator project.


    please someone help to show me how importing a project into eclipseme can be done nicely?
    thanks.

  7. #7
    Nokia Developer Champion jitu_goldie's Avatar
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330
    Quote Originally Posted by axilaris View Post
    Thanks but I already done the setting stage.

    Now, what I am trying to do is to see how other applications are programmed in j2me to understand a bit more.
    My problem is these sample codes that I download doesnt seem to work in my environment.

    Ok, lets take another example.

    1. I downloaded this sample code
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html
    2. copy to workspace
    3. Import TouristRoute
    4. J2ME->Convert to J2ME choose WTK2.5.2
    6. change build configuration to s60 5th edition
    7. i still see red X at the package explorer. no idea what is it.
    8. when i choose debug as, i cant see touristroute in the wireless toolkit emulator project.


    please someone help to show me how importing a project into eclipseme can be done nicely?
    thanks.
    why r u just copying the code to the old prject. Try with creating new project and create some midlet and then do some code then compile and see the result.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  8. #8
    Registered User axilaris's Avatar
    Join Date
    Jul 2008
    Posts
    19
    thanks. i can create anyway a helloworld midlet. thats simple and no problem.

    but i would like to see how others have created their midlet and looking at more complex examples to understand.
    please help me figure out how then to test other example codes.

    thanks.

  9. #9
    Registered User itsteju's Avatar
    Join Date
    Mar 2009
    Posts
    21
    Hi there,
    I have imported lwuit jar in my project.
    Whenever I try to build project / create package in eclipse,I get following error:
    Errors during build.
    Errors running builder 'Preverification' on project 'HelloLWUIT'.
    org.eclipse.jdt.internal.core.JavaModel.getTarget(Lorg/eclipse/core/resources/IContainer;Lorg/eclipse/core/runtime/IPath;Z)Ljava/lang/Object;
    org.eclipse.jdt.internal.core.JavaModel.getTarget(Lorg/eclipse/core/resources/IContainer;Lorg/eclipse/core/runtime/IPath;Z)Ljava/lang/Object;

    Please suggest me solution for this problem...

    Thanks.

Similar Threads

  1. Problem in J2mE
    By aamitgupta in forum Mobile Java General
    Replies: 3
    Last Post: 2008-01-03, 23:04
  2. Problem while building jsp/servlet in j2me
    By sachinwarang in forum Mobile Java General
    Replies: 4
    Last Post: 2007-08-22, 12:08
  3. Replies: 2
    Last Post: 2006-05-02, 07:19
  4. Phone (ARMI) Release Problem
    By aydink_1903 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2006-04-07, 23:39
  5. Installation problem with Nokia Dev Suite for J2ME
    By anirvan in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-04-24, 14:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved