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

Similar Messages

  • J2me polish with netbeans

    Hello guys,
    I am trying to integrate j2me polish with netbeans but i am not able to do it . When i am building my mobile application with j2me polish it will giving me
    ----Unable to find the tool at the default location please specify where to find it with preverify attribute of the build element--- error.
    I am not able to get what happening if anybody know abt it please help me.
    Thanks in advance.

    hi have you figured out how to fix this error? because i am encountering the same thing

  • 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.....

  • J2me polish compilling in netbeans

    I'm trying to integrate netbeans with j2me polish but when rebuilding I get an error
    Buildfile: build.xml
    clean.tar.src:
    clean.resources:
    clean.devices:
    clean:
    build.tar.src:
          [tar] Building tar: D:\projects\MobileClient1\CP_Phone_Backup-Src.tar.gz
    build.resources:
          [tar] Building tar: D:\projects\MobileClient1\CP_Phone_Backup-Common.tar.gz
    build.devices:
    BUILD FAILED
    D:\projects\MobileClient1\build\build.xml:57: The <subant> type doesn't support the nested "target" element.
    Total time: 4 seconds
    BUILD SUCCESSFUL (total time: 4 seconds)

    akienou wrote:
    Hello Lichtens,
    I've been able to install the Polish samples installed with J2ME Polish.
    The problem is how I can create a new J2ME Polish project or how I can integrate Polish functionalities to an existing project.
    Thanks in advance.From the tutorial itself that you pointed:
    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.

  • 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 Polish] How to generate jad/jar for all devices?

    Hello,
    I've developed a J2ME Polish application using Netbeans 6.1 as IDE.
    Now I'd like to generate the corresponding jad/jar for all the existing devices. How can I do that?
    Furthermore, as soon as I'll have generated all these jar/jad, I'd like to put them all in a Web directory in order to make each device able to download the jad/jar corresponding to its configuration. How can I switch a given device towards the appropriate jad/jar in this Web directory?
    Help me please, I'm really confused!
    Thanks you in advance.
    /arkienou

    Even though JDK1.4 is not officially shipping the
    Java Plugin 1.4 documents on Security are fairly
    good. Check out :
    http://java.sun.com:80/j2se/1.4/docs/guide/plugin/developer_guide/contents.html
    http://java.sun.com:80/j2se/1.4/docs/guide/plugin/developer_guide/rsa_how.html
    regards,
    atsSun
    Sun Microsystems

  • 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

  • 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

  • I've installed J2ME POLISH but there's no difference in my Netbeans

    Greetings everyone
    I've installed J2ME POLISH, I'm using Netbeans 6.8 but I can't seem to find any extra features in my netbeans..
    I would appreciate any feedback
    Thanx

    Lelo,
    You need to add j2me-polish jar in your project to make use of it. Go through j2me-polish tutorial to know how to develop app using it.
    Have you done any mobile app development before ?
    rizzz86

  • 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,

  • 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.......

  • 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

Maybe you are looking for

  • Cannot download any apps from app store

    Hello - I have the iPhone 4S & I'm unable to download any new apps from the app store.  I click on INSTALL but only indicates INSTALLING for about 2 seconds then goes back to INSTALL; I'm not prompted to enter my ITunes password; Install isn't workin

  • LaserJet 4P and Windows 8.1

    Bought a new ASUS PS running Windows 8.1 (64-bit) and I'm having a heck of a time finding the proper driver for my LaserJet 4P.  I've spent hours combing through the different pages of HP support and it keeps telling me that I should be able to find

  • Call WD Interactive Form with Values from ABAP Report

    Hallo together, i have a simple ABAP report with some values. How to call a webdynpro passing these values and using them in Select-Statements to prefill the called Interactive Form Thanks Philip

  • Error in creating approval policy in OIM 11g

    hi... i am trying to create approval policy in OIM 11g. But after giving the details for first step, it gives the following error- "Approval policy validation failed with oracle.iam.request.exception. ApprovalPolicyServiceException:An error occured w

  • Oracle Calendar Administrator

    I'm having a couple minor problems with the calendar administrator that I was wondering if anyone had seen. 1) When I get a list of calendar users in the administrator, there are three options on the right side of the screen for each user. One of the