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

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mick BarryJava DeveloperCommented:
>  I know that this attribute exists

I'm not aware of one, can you point to some doco that specifies it?
shaf78Author Commented:
Mick BarryJava DeveloperCommented:
Ah you're using ME.
have u tried:

MIDlet-Icon: myicon.png
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

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).
Mick BarryJava DeveloperCommented:
> 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 :)
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 :-)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.