Solved

jar manifest icon attribute

Posted on 2003-11-30
7
1,697 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

864 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

19 Experts available now in Live!

Get 1:1 Help Now