Solved

jar manifest icon attribute

Posted on 2003-11-30
7
1,752 Views
Last Modified: 2013-11-23
Hi, This should be a simple answer for anyone familiar with manifests for executable jar files. I'm trying to change the icon by declaring the icon to be used in the icon attribute of the manifest. I know that this attribute exists but I don't no the proper format of the attribute or how to include it in my manifest file.

So far this is what I am using in my manifest:

Manifest-Version: 1.0
Main-Class: exam.PER_0

Thanks for any help you can provide

shaf
0
Comment
Question by:shaf78
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 92

Expert Comment

by:objects
ID: 9847220
>  I know that this attribute exists

I'm not aware of one, can you point to some doco that specifies it?
0
 

Author Comment

by:shaf78
ID: 9847244
0
 
LVL 92

Expert Comment

by:objects
ID: 9847258
Ah you're using ME.
have u tried:

MIDlet-Icon: myicon.png
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Expert Comment

by:jimmack
ID: 9848709
You can't just add this to the manifest, it needs to be in the .jad file too.

The icon should appear in the /res directory of the project (under ...wtk2.0/apps/yourapp/).  Normally, I create a further directory under /res called /images (or /icons).  In this case, the MIDlet-Icon should be set to /images/myicon.png.

Finally, don't forget to include the reference to the icon as the second parameter of the MIDlet-1 attribute (which contains MIDlet name, MIDlet icon, MIDlet class).
0
 
LVL 92

Expert Comment

by:objects
ID: 9848734
> You can't just add this to the manifest, it needs to be in the .jad file too.

Should have mentioned that, thought specifying an image without including an image would be obviously a bit silly :)
0
 
LVL 15

Accepted Solution

by:
jimmack earned 50 total points
ID: 9848759
Ah.  Good point objects, but not quite what I meant ;-)

You are absolutely right, the image itself also has to be included (as you say ;-)), but I meant that the MIDlet-Icon attribute needs to be specified in both the manifest and the .jad because the two files should contain the same information to ensure the integrity of the download :-)
0
 
LVL 15

Expert Comment

by:jimmack
ID: 10066321
;-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question