Link to home
Start Free TrialLog in
Avatar of shaf78
shaf78

asked on

jar manifest icon attribute

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
Avatar of Mick Barry
Mick Barry
Flag of Australia image

>  I know that this attribute exists

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

ASKER

Ah you're using ME.
have u tried:

MIDlet-Icon: myicon.png
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).
> 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 :)
ASKER CERTIFIED SOLUTION
Avatar of jimmack
jimmack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
;-)