views:

741

answers:

2

I'm using J2ME Polish version 2.0.7 together with ant to build my Midlet application. In order to specifcy the main-class, name and icon of the application, the J2ME Polish documentation suggests that I use the midlet element inside the build element.

<build usePolishGui="false" >
    <midlet name="My Killer App." icon="/logo.png" class="com.foo.MidletMain" /> 
...
</build>

however in the resulting .jad file only the classname is taken into account when I build my Midlet.

MIDlet-1: MidletMain,,com.foo.MidletMain

Can someone figure out what I'm doing wrong?

+1  A: 

See if you have the logo.png is in the root folder of the jar file

Ram
A: 

No it must be in the info section of the j2mepolish target:

<project ...>
<target name="j2mepolish"  ...>
     <j2mepolish>
      <info ... icon="xxx.png">
Rémy DAVID