使用 J2ME-Polish 设置 Midlet 图标

发布于 2024-07-19 15:54:40 字数 596 浏览 7 评论 0原文

我使用 J2ME Polish 版本 2.0.7 和 ant 来构建我的 Midlet 应用程序。 为了指定应用程序的主类、名称和图标,J2ME Polish 文档 建议我在 build 元素内使用 midlet 元素。

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

然而,在生成的 .jad 文件中,当我构建 Midlet 时,仅考虑类名。

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

有人能弄清楚我做错了什么吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

负佳期 2024-07-26 15:54:41

不,它必须位于 j2mepolish 目标的信息部分:

<project ...>
<target name="j2mepolish"  ...>
        <j2mepolish>
            <info ... icon="xxx.png">

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

<project ...>
<target name="j2mepolish"  ...>
        <j2mepolish>
            <info ... icon="xxx.png">
腹黑女流氓 2024-07-26 15:54:41

您需要做的是:

<j2mepolish>
.....
<build>  
  ...
   <jad>
         <attribute name="MIDlet-Icon" value="/icon.png" />
   <jad>
</build>

你的图标会起作用!

What you will need to do is this:

<j2mepolish>
.....
<build>  
  ...
   <jad>
         <attribute name="MIDlet-Icon" value="/icon.png" />
   <jad>
</build>

Your icon would work!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文