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.

Similar Messages

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

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

  • 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

  • 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

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

  • 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

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

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

  • 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

  • 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 compiling in Netbeans IDE

    Hi all,
    I am using Netbean 3.6. I am getting an error in compling
    Class.forName("ClassName");
    Cannot resolve symbol. What should I do About it.
    However I am able compile the same program in command line. Only I am unable compile in netbean 3.6. Do I need to change any settings. Please let me know.
    My mail Id is
    [email protected]
    [email protected]
    Regards,
    Saravanakumar

    Is there any reason that you are using 3.6? I am using 5.5.
    anyway the forName method returns the Class object associated with the class or interface with the given string name.
    so for the given:
    Class.forName("ClassName");
    The Class.forName method must be used with care in JRE code. A call
    of the type Class.forName(classname) can only be assumes to find classes on the bootclasspath, since it does a look up on the callers classloader

Maybe you are looking for