Solved

jar manifest icon attribute

Posted on 2003-11-30
7
1,686 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
  • 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now