EqualsIgnoreCase() and J2Me Polish

Hi,
I am making an application in J2Me Polish. My application is using equalsIgnoreCase() method.
When i compile the application w/o Polish it works fine but it shows error when i compile it with the J2ME Polish.
The error is: cannot resolve symbol.
I have used Nokia/6681 group in the build.xml which supports MIDP 2.0/CLDC 1.1
But it i s not able to resolve this method.
Please help me in solving it.
Regards,
Divya

thanks for the information but cant we use equalsIgnoreCase method anyhow in J2ME Polish.Is this the limitation of the J2ME Polish.......

Similar Messages

  • Problem with integrating netbeans with j2me polish

    hi everybody,
    Im getting the following error message when im integrating netbeans and j2me polish.
    Warning - could not install some modules:
         enough-polish-netbeans - The module Java Platform was requested in version >= 1.10 but only 1.9.1 was found.im using netbeans ide 6.0.1 and jdk 1.6
    j2me polish 2.0.7.
    plz anybody help me in this.
    Thanks,
    Ramesh.P

    thanks st3p3n for your valuable reply.
    i faced the above said problem when i tried to integrate with netbeans 6.0.1.
    but again i tried with netbeans 6.5 and there is no such an error.
    Thanks,
    Ramesh.P

  • Problem with Display.setCurrentItem() using J2ME-Polish

    Hi,
    I am fairly new to J2ME-polish and have encountered a situation that I am having a problem with. I am loading a form with a number of String Items. When I display the form I would like to focus to the last String Item that has been placed on the form. I have been using Display.setCurrentItem() in J2ME but when I try using it in J2ME-Polish I receive this message :"de.enough.polish.ui.Screen (3022): Screen: unable to focus item (did not find it in the container or is not activatable ) "
    Below is a snippet of my code.
            // si14 in a StringItem defined earlier in the code
            // It is the last stringItem placed into the form
            form.append(si14);
            display = Display.getDisplay(this);
         display.setCurrent(form);
         display.setCurrentItem(form.get(0));Thanks

    http://forums.sun.com/thread.jspa?threadID=686256&messageID=10864566

  • Problem in configuring jar file into a j2me polish project

    look guys i know it might look noobie question but it is realy urgent !!
    i want to add a jar file into a j2me polish project--: i added it as a jar into the resources , put it in a liberary .
    and when i wanted to import it into my classes it was shown in the auto-complete and it showd no error but while i try to comile my project i got this error:
    clean:
    Deleting directory G:\MyWOrk\Polish Projects\NamesMeanings\build
    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:
    nokiaS80-pre-init:
    nokiaS80-init:
    nsicom-pre-init:
    nsicom-init:
    bdj-init:
    post-init:
    init:
    j2mepolish-init:
    j2mepolish:
    J2ME Polish 2.0.7 (2008-11-24) (GPL License)
    Loading device database...
    Processing [2] devices...
    building application for [Nokia/N70] (1/2):
    using locale [en_US]...
    assembling resources for device [Nokia/N70].
    preprocessing for device [Nokia/N70].
    Warning: CSS-Style [focused] not found, now using the default style instead. If you use Forms or Lists, you should define the style [focused].
    Warning: CSS style [title] not found, you should define it for designing the titles of screens.
    processing locale code...
    Warning: unable to resolve path to API "videocontrolbeforeplayer". When this leads to problems, please register this API in [apis.xml].
    compiling for device [Nokia/N70].
    Compiling 320 source files to G:\MyWOrk\Polish Projects\NamesMeanings\build\real\nokia240X320\Nokia\N70\en_US\classes
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:7: package nmsearch does not exist
    import nmsearch.*;
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:74: cannot find symbol
    symbol : variable NMSearch
    location: class namesmeanings.main.DirectSearch
    searched=NMSearch.Search(message);
    2 errors
    When an API-class was not found, you might need to define where to find the device-APIs. Following classpath has been used: [C:\Users\Asmaa\J2ME-Polish2.0.7\import\mmapi.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\midp-2.0.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\cldc-1.1.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/nokia-ui.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar].
    G:\MyWOrk\Polish Projects\NamesMeanings\build.xml:39: Unable to compile source code for device [Nokia/N70]: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 9 seconds)pleez i'll be more than thankful if anybody here could help in this.....

    look guys i know it might look noobie question but it is realy NOT* urgent !!
    i want to add a jar file into a j2me polish project--: i added it as a jar into the resources , put it in a liberary .
    and when i wanted to import it into my classes it was shown in the auto-complete and it showd no error but while i try to comile my project i got this error:
    clean:
    Deleting directory G:\MyWOrk\Polish Projects\NamesMeanings\build
    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:
    nokiaS80-pre-init:
    nokiaS80-init:
    nsicom-pre-init:
    nsicom-init:
    bdj-init:
    post-init:
    init:
    j2mepolish-init:
    j2mepolish:
    J2ME Polish 2.0.7 (2008-11-24) (GPL License)
    Loading device database...
    Processing [2] devices...
    building application for [Nokia/N70] (1/2):
    using locale [en_US]...
    assembling resources for device [Nokia/N70].
    preprocessing for device [Nokia/N70].
    Warning: CSS-Style [focused] not found, now using the default style instead. If you use Forms or Lists, you should define the style [focused].
    Warning: CSS style [title] not found, you should define it for designing the titles of screens.
    processing locale code...
    Warning: unable to resolve path to API "videocontrolbeforeplayer". When this leads to problems, please register this API in [apis.xml].
    compiling for device [Nokia/N70].
    Compiling 320 source files to G:\MyWOrk\Polish Projects\NamesMeanings\build\real\nokia240X320\Nokia\N70\en_US\classes
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:7: package nmsearch does not exist
    import nmsearch.*;
    G:\MyWOrk\Polish Projects\NamesMeanings\source\src\namesmeanings\main\DirectSearch.java:74: cannot find symbol
    symbol : variable NMSearch
    location: class namesmeanings.main.DirectSearch
    searched=NMSearch.Search(message);
    2 errors
    When an API-class was not found, you might need to define where to find the device-APIs. Following classpath has been used: [C:\Users\Asmaa\J2ME-Polish2.0.7\import\mmapi.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\midp-2.0.jar;C:\Users\Asmaa\J2ME-Polish2.0.7\import\cldc-1.1.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/nokia-ui.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/mmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/wmapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/m3g.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/pdaapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/btapi.jar;C:/Users/Asmaa/J2ME-Polish2.0.7/import/jsr172.jar].
    G:\MyWOrk\Polish Projects\NamesMeanings\build.xml:39: Unable to compile source code for device [Nokia/N70]: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 9 seconds)pleez i'll be more than thankful if anybody here could help in this.....

  • Which one is better to use..Canvas or J2ME Polish

    Hello Frnds,
    I want to add background images n want to use High level GUI, So is the polish be a good option for it , or should I go for simple j2me canvas n write my own low level... GUI like construct .....or should go for Synclast 3rd party API. library......

    I've J2ME Polish on a few projects, and it can be really nice. But sometimes you just need more, you need pure Canvas flexibility. And for that (and for 90% of my projects) I use synclast. It's a canvas based container toolkit, it allows you to do a LOT with a canvas, and you can also extend it very easily to create your own widgets for the UI.
    http://synclast.com/ui_api.jsp
    don't download the release build, it's REALLY old, download the source and compile your own jar for a much more up-to-date library.

  • I want to know about the J2ME Polish

    Hi all,
    I am developing a application in that i was supposed to display the text in align to the String.I am getting the content from the file and i want to display the text in align.
    when i am retreiving the text from the specified file it was displaying in the horizantal manner.
    Is there is any method to display the text in align
    THANKS IN ADVANCE

    Hello
    i am having an hard time understanding and using J2ME polish.
    (Why make things so hard when they can be made easy..... )
    I am trying to use J2ME polish to change the background color of my application. I coded the application using netbeans mobility 5.0 and i used objects likes form, waitscreen and UI components of Netbeans.
    I did not manage to compile it using j2ME polish build.xml file, He does not find the netbeans classes, he cannot not obfuscate and i can not really compile it for MiDP 2.0 CLDC 1.1
    please icould you provide me a build.xml file running with netbeans, something not too huge like the one in J2ME polish samples?i work under Linux which make the process even more complex...
    Any advises or guildelines are welcome
    thanks a lot
    sebastien

  • J2ME game gui? J2ME Canvas? J2ME polish? Which is better?

    I am currently trying to build a J2ME brochure like project which is required to have rich presentation.
    JAVA is not a problem for me as I've used it for quite a long time. But since I am very new in J2ME, I am confused which technology to use, should I use j2me game gui, j2me canvas or j2me polish?
    Using j2me game gui looks good. J2me canvas looks a bit tedious to me because for a brochure like project, it will mean I will probably end up using a lot of canvas which make the application quite big. Regarding to J2ME polish, there is not many materials or examples about it. it seems that J2ME polish hasn't been used a lot and I don't know whether it's good or not.
    Anybody knows something about those three? Please give me a hand.
    Thanks.

    J2ME Polish have licensing costs associated with it:
    http://www.j2mepolish.org/licenses.html
    As for Canvas VS GameCanvas:
    GameCanvas is MIDP 2.0 and up, so depending which devices your app supports you might want to stick with Canvas. GameCanvas eases graphics flushing, but double buffering can be implemented on Canvas like so:
    Image offscreen = isDoubleBuffered () ? null :
               Image.createImage (getWidth (), getHeight ());See http://www.developer.com/java/j2me/article.php/10934_1561591_8
    section: Avoiding Flickering

  • How to integrate media player in j2me polish

    Hi,
    I have create a media player in j2me. Now I want to integrate media player code into j2me polish project. I tried to integrate the media player with j2me polish project and audio file is playing fine. but while playing video I am not getting the video picture, only voice is cming and it's also giving one exception like this -
    "[j2mepolish] Generic/AnyPhone: Uncaught exception java/lang/ClassCastException"
    If i am going to build.xml and changing the
    usePolishGui="true" to "false".. then I am getting video picture also without any Exception..
    Kindly help me out..
    Thanks,

    Hi,
    I have create a media player in j2me. Now I want to integrate media player code into j2me polish project. I tried to integrate the media player with j2me polish project and audio file is playing fine. but while playing video I am not getting the video picture, only voice is cming and it's also giving one exception like this -
    "[j2mepolish] Generic/AnyPhone: Uncaught exception java/lang/ClassCastException"
    If i am going to build.xml and changing the
    usePolishGui="true" to "false".. then I am getting video picture also without any Exception..
    Kindly help me out..
    Thanks,

  • Query abt j2me polish

    if any1 has used j2me polish,then plz answer.
    when i open the sample projects from j2me polish,it gives error
    saying"#style is unknown preprocessor directive".I hav installed j2me polish properly.im new to polish but.pls reply.

    smart@gayu wrote:
    if any1 has used j2me polish,then plz answer.J2me is a great tool for generating fantastic interfaces!
    its a pity that most users do not know to use it
    when i open the sample projects from j2me polish,it gives error
    saying"#style is unknown preprocessor directive".I hav installed j2me polish properly.im new to polish but.pls reply.do you know to use apache ant?
    you need ant to build the application
    1. set the bin directory of ant in the class path
    2. open the command prompt and navigate to the directory of the sample (make sure the dir contains the file 'build.xml')
    3. in the command prompt type 'ant' (without quotes)
    cheers

  • Add midlet in j2me polish

    Hi all,
    I've just downloaded J2ME polish and I have no idea how to use more than one midlet since I have only tested one midlet in Polish.
    Suppose I want to add other midlet can I just place it in build.xml ?

    Buddy png format image is suppose to be displayed change the format
    and try it again
    With regards
    Rizwan

  • Error - netbeans integrating with j2me polish- file connection api

    dear friends,
    can anyone help why this error is coming, while i run my existing mobile project in j2me polish
    J2ME Polish 2.0.7 (2008-11-24) (GPL License)
    Warning: unable to access system property javax.xml.parsers.SAXParserFactory: java.lang.SecurityException:
    Warning: unable to access system property javax.xml.parsers.DocumentBuilderFactory: java.lang.SecurityException:
    java.lang.NullPointerException
            at de.enough.polish.ant.PolishTask.initProject(PolishTask.java:959)
            at de.enough.polish.ant.PolishTask.execute(PolishTask.java:376)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor196.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:357)
            at org.apache.tools.ant.Target.performTasks(Target.java:385)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
            at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
            at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:481)
            at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
    D:\ProjectHome\MoBilal\build.xml:87: Unable to execute J2ME Polish task: java.lang.NullPointerException
    BUILD FAILED (total time: 5 seconds)thanks in advance

    thanks st3p3n for your valuable reply.
    i faced the above said problem when i tried to integrate with netbeans 6.0.1.
    but again i tried with netbeans 6.5 and there is no such an error.
    Thanks,
    Ramesh.P

  • J2ME Polish 2.0.4 Installation Problem...please help !!

    Hello,
    I recently downloaded j2mepolish-2.0.4.jar on my Windows XP machine , and from commandline started the installation by typing the command :
    java -jar j2mepolish-2.0.4.jar However during the installation i get an error . I took a screenshot of the error window. You can see that at :
    [http://docs.google.com/View?docid=dck2kwq6_14f7ztxvgk|http://docs.google.com/View?docid=dck2kwq6_14f7ztxvgk]
    At the command line the errors are as follows :
    validated: path C:\Program_Files\J2ME-Polish is writable.
    java.lang.NullPointerException
            at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
            at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
            at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Sour
    ce)
            at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
            at java.io.ObjectInputStream.<init>(Unknown Source)
            at com.izforge.izpack.installer.Unpacker.run(Unpacker.java:109)
            at java.lang.Thread.run(Unknown Source)I have JDK 1.5.0,WTK2.5.2 ,apache-ant-1.7.1, Netbeans 6.0 installed.During installation of j2mepolish,wtk.home is set to C:\WTK2.5.2,nokia.home is C:\Nokia and netbeans.home is C:\Program Files\NetBeans 6.0. still im getting this error during installation .
    Any ideas for resolving this would be really appreciated.
    Please help.
    Thank You :)
    Edited by: sc0tta on Aug 29, 2008 11:07 AM

    My JDK version is 1.6.0_03, and the jre i was using was 1.5.0 . The problem was fixed after i upgraded my jre to 1.6.0_07 :)
    So, it looks like both jdk and jre have to be the same major version (1.6.0 in my case) for the installation to be successful.
    Edited by: sc0tta on Aug 29, 2008 2:47 PM

  • J2me polish with netbeans    5.5?

    Hi i am trying to use J2ME polish with an existing midlet program i am working on but cant seem to get it to work.
    i have got one of the build.xml file from one of the samples and have placed it on my projects root folder. i then copied one of the resorces folder from the sample project and placed in in my projects root as well. When i try running the program i get a compile error below:
    Warning: unable to find following requested device-identifiers:
    S60Emulator
    Please check your <deviceRequirements> section in your build.xml script.
    C:\Documents and Settings\jonathan\My Documents\videoPoker\videoPoker\build.xml:70: Your device-requirements are too strict - no device fulfills them. Check the <deviceRequirements> section(s) in your build.xml script.
    im trying to run it on the s60 emulator and the default colourphone device emulator. hope you guys can help has i have not been able to get this j2me polish working for a while.
    How come when i try to use import de.enough.polish it tells me that it doesnt exist when i installed j2me polish succesfuly? how come i cant use it on my current default j2me project?
    i have got the latest jdk and wireless toolkit sdk and i have downloaded the mobile pack for netbeans 5.5

    Have you had any luck wih this problem? I'm having exactly the same problem now, starting to use J2ME Polish with NetBeans 5.5.1.
    Thanks!

  • Integrate J2ME Polish in NetBeans environment

    Hi all,
    I've trouble with having a full functionnal Netbeans environment with J2ME Polish.
    Here are the two ways I've tried without full success :
    *1- Start from a J2ME Polish project sample :*
    The sample is working well and when I add my code, most of it is working but :
    -> I can't add my own ressources (icons, sounds, etc...) even by adding the ressource directory in project properties. The code doesn't find them at execution.
    -> It doesn't find some specific APIs like MMAPI javax.microedition.media.control.VideoControl even if MMAPI ability is present and even if I manually add the mmapi.jar file in the library&ressources.
    *2- Add Polish library to an existing and working project :*
    I've added Polish abilities and enough-j2mepolish-client.jar library
    The code is compiling and I have access to both Polish and MMAPI interfaces.
    -> The big problem is that polish screens are empty. For example a simple polish alert screen is empty, the title bar is displayed, the softkeys are displayed but the content is not. Whereas, the string to be displayed is correctly built and no exception is raised during screen building and display.
    So my question is : Is there anybody who has a correct Netbeans 6.0.1 environment including J2ME Polish and what are the steps to follow to build such an environment ?
    Thanks a lot

    First of all , install netbeans and mobility package.
    Then do the follows:
    http://www.j2mepolish.org/docs/install.html#netbeans5
    J2ME Polish provides NetBeans specific build scripts from J2ME Polish 1.3 Beta 3 onwards. You can now just open any of the provided sample applications, delete the default build.xml script and rename the build-netbeans.xml script to build.xml. You can from then on use the normal debugging, build and compile facilities of NetBeans.
    Integrating a sample application in NetBeans:
    Select File > Open Project... and select any sample application in ${polish.home}/samples. Just select a folder like the menu folder and select Open.
    Now switch to the Files window by selecting Window > Files.
    In this window delete or rename the build.xml script which is in the base folder of the project.
    Now right-click the build-netbeans.xml script and rename it to build.xml. When the renaming does not work, do it directly from the file system (e.g. Windows Explorer).
    From now on you can build, run, debug and compile with the normal NetBeans commands (e.g. F5 for debugging). J2ME Polish is then used for building etc.
    When you start a new project in NetBeans, just copy one of the sample build.xml scripts to your project's folder. Then adjust the settings according to your needs.
    So , just adjust the ant script 'build.xml'

  • Mp3 and j2me supporting reliance mobile

    hi,
    if anyone know abt mp3 and j2me supporting Reliance phone in market.if so please give me the link where to get teh details I already checking it with reliance website and i want more information please help me.
    thanx in advance
    laxmi

    hi laxmi
    i dont know did you check this URL
    www.dadp.com
    there is one forum also avail for the j2me and realience phone you will get all the information tehre
    regards
    [email protected]

Maybe you are looking for