×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    compilation problem in example midlet from Java ME 3.0

    There r many example in jme sdk 3.0 (http://www.oracle.com/technetwork/ja...iew/index.html)

    I'm trying to build example to learn more about midlet 2d graphics.


    AGUISwingSet2 error: package javax.swing does not exist

    BdjGunBunny error: package java.awt does not exist

    How to build it or include those package?
    Do it now! Today will be yesterday tomorrow - MadSum

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: compilation problem in example midlet from Java ME 3.0

    Hello madsum,

    for building MIDlets which use 2D Graphics (SVG) with Java ME SDK 3.0, you do not need java.swing or java.awt at all.

    Instead, try including package javax.microedition.m2g and it's classes into your project.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Re: compilation problem in example midlet from Java ME 3.0

    Hi,

    I didn't add anything extra. I just try to build the example comes with Java ME SDK 3.0. It has 2 example named:-

    AGUISwingSet2 error: package javax.swing does not exist

    BdjGunBunny error: package java.awt does not exist

    I tried adding all package which is available in j2me.
    I assume if I could add java.swing or java.awt lib in my project library option. It may compile.
    I don't know how to include extra lib by using netbeans IDE.

    I think it will be better if I give the a link for those problematic example. Here is the link where I get compilation error.
    https://docs.google.com/viewer?a=v&p...3MzVi&hl=en_US
    Last edited by madsum; 2011-11-21 at 09:08.
    Do it now! Today will be yesterday tomorrow - MadSum

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: compilation problem in example midlet from Java ME 3.0

    Hello madsum,

    you are right, my mistake here.

    It seems that the applications depend on CDC configuration (instead of CLDC which Nokia SDKs base on) in order to build them correctly. Do you use that one in your IDE?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Re: compilation problem in example midlet from Java ME 3.0

    I'm using netbeans 7.0.1. I tired both nokia as well as JME 3.0 SDK. It dosn't compile. Also give a try by CDC. I has different error.
    Do it now! Today will be yesterday tomorrow - MadSum

  6. #6
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: compilation problem in example midlet from Java ME 3.0

    Hello madsum,

    as I was able to build with CDC without a problem, could you defined what error do you receive?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  7. #7
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Re: compilation problem in example midlet from Java ME 3.0

    Well I don't need it for CDC. I just tried to check whether it compiles for CDC. So I don't want invest more time for it. I would like to listen more about CLDC only.
    Do it now! Today will be yesterday tomorrow - MadSum

Similar Threads

  1. USSD - java midlet problem
    By dmarkovic in forum Mobile Java General
    Replies: 14
    Last Post: 2012-07-16, 00:28
  2. Qt App Compilation Problem
    By marcinos in forum [Archived] Qt SDKs and Tools
    Replies: 14
    Last Post: 2011-03-28, 07:25
  3. compilation problem
    By shoshoro99 in forum Qt
    Replies: 12
    Last Post: 2010-08-13, 15:04
  4. compilation problem
    By mob07 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-04-08, 10:08
  5. C++ compilation problem 2nd to 3rd
    By nhamel in forum Symbian
    Replies: 4
    Last Post: 2007-02-13, 21:26

Posting Permissions

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