Solved

jar manifest icon attribute

Posted on 2003-11-30
7
1,714 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why can't I create any project with my delphi EXE file? 6 39
type mismatch (Object[] to double[] 4 33
String array comparison 4 38
Java syntax, or is it Selenium 6 30
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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

860 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