Adding your own Application icon for your J2ME application (jar file)

By: Emiley J. Emailed: 1586 times Printed: 2041 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Normally it is the default icon which is seen as soon as the installation of a jar file is complete.. if you  want to see your own icon for launching the application after installing the jar file then here is how you can do this.

To achieve this manually just add following entry into your JAD/Manifest files:
MIDlet-1: <App Name>,<AppIcon>,<MidletClass> where AppIcon is the name of icon image file along with path in the JAR file where it resides in the Jar ex: /app/appicon.png 

or else 

You can add the MIDlet-Icon attribute that contains the absolute path of the icon file for the MIDlet suite, relative to the JAR file itself.

If you are using an IDE, then follow the steps below:

  1. For the Netbeans IDE

    Just go to the project properties,
    then go to the application descriptor.
    and now click the midlet tab then you will find the icon option,correct.
    Then click on this icon drop down and provide the name of the icon.
    Thats all.
  2. For the eclipse + mtj 

    #Open the eclipse
    #Find your project
    #Find the Application descriptor
    #Now give double click with mouse left bottom in this
    #Find the label "optional" choose it, in the MIDlet icon box put the your icon path...e.g. C:\...
    #save your changes.

J2ME Home | All J2ME Tutorials | Latest J2ME Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(10)


1. View Comment

Hi..
How can i read .mp3 files from memory card through j2me application


View Tutorial          By: satyanarayana at 2010-03-29 11:14:27
2. View Comment

good......

View Tutorial          By: Sudip Khatiwara at 2010-04-05 22:31:06
3. View Comment

How do I insert an image in a list? I am using Visual Midlet. thxx.urgent.

View Tutorial          By: anu at 2010-04-16 03:07:00
4. View Comment

thanks, i will try. but can u tell me how to send automatically sms to phone number?

View Tutorial          By: ketut joko wibawa at 2011-01-02 05:18:01
5. View Comment

this site is so good...... How can we create a mp4 video player?
please give idea and code..


View Tutorial          By: vikram raj at 2011-01-05 01:03:07
6. View Comment

I'm having trouble figuring out how to sign my midlet using Netbeans. Can you provide steps for how to do this?

View Tutorial          By: Patrick Somers at 2011-04-04 14:54:45
7. View Comment

This post is about adding an application icon to a jar file in J2ME applications. I need to know how to add an Application icon to a simple Java SE application, i.e. for executable jar files that we create to be run on a PC.

View Tutorial          By: Rick at 2011-11-04 16:48:16
8. View Comment

you can see this page: http://devlinslab.blogspot.com/2007/10/adding-icon-to-your-midlet-or-game.html

View Tutorial          By: luis at 2011-11-08 06:46:23
9. View Comment

Wow

View Tutorial          By: Ajmalnafi at 2012-06-30 01:48:04
10. View Comment

I want to change software of micromax x455 mobile handset? Is there any option please let know

View Tutorial          By: Sachin at 2012-12-29 09:39:58

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Emiley J.
Error generating R.java from manifest
ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
IIS and Tomcat - how to configure to work together
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
Adding your own Application icon for your J2ME application (jar file)
Creating Menus in Code using VB.net
Traversing all files in a directory using Ruby
Using Proxy to connect to URLs in Ruby
POST a form in Ruby
Reading URL content using Ruby (HTTP)
dRuby client/server mode sample program
Benchmark module in Ruby
encoding and decoding in Ruby using Base64 Module
Module Abbrev in Ruby
Standard Library Packages in Ruby

More Tutorials in J2ME
Code sample to Send SMS from a J2ME application.
Adding your own Application icon for your J2ME application (jar file)
Play a multimedia file in J2ME Program (Audio/Video) using MMAPI
Datagrams in J2ME (UDP Programming sample)
Client Server in J2ME (Socket Programming sample)
Using HttpConnection in J2ME (Retrieve web content from a website to a phone)
Using HTTP vs UDP vs Socket in J2ME
RMSCookieConnector - Using Cookies in J2ME
POST UTF-8 encoded data to the server in J2ME
lists, forms, choices, gauges, text fields, text boxes in J2ME
Using List to create a Menu and Menu items in J2ME
Using alerts and tickers in J2ME
J2ME Canvas sample to show games programming in J2ME
Timer and TimerTask example in J2ME
List of GPRS Access points for all countries

More Latest News
Most Viewed Articles (in J2ME )
Sample Java program shows how to Read a file over a network using J2ME midlet
GUI components and menu based J2ME Applications.
What is J2ME?
Code sample to Send SMS from a J2ME application.
Download a file over a network in J2ME midlet
Ticker sample program in J2ME
RMS Basics in J2ME
Using List to create a Menu and Menu items in J2ME
Using HttpConnection in J2ME (Retrieve web content from a website to a phone)
'LINK.EXE' is not recognized as an internal or ext
java.lang.SecurityException: MIDP lifecycle does not support system exit.
POST UTF-8 encoded data to the server in J2ME
Client Server in J2ME (Socket Programming sample)
Adding your own Application icon for your J2ME application (jar file)
Y.S. Sun Green Building Research Center
Most Emailed Articles (in J2ME)
How to load J2ME applications to the IDEN handsets
'LINK.EXE' is not recognized as an internal or ext
Sample Java program shows how to Read a file over a network using J2ME midlet
Y.S. Sun Green Building Research Center
Ticker sample program in J2ME
Image and ImageItem sample program in J2ME
RMS Basics in J2ME
Internationalization Support in J2ME MIDP
lists, forms, choices, gauges, text fields, text boxes in J2ME
Using List to create a Menu and Menu items in J2ME
Download a file over a network in J2ME midlet
Sample J2ME code that shows various functionality of RMS.
J2ME Canvas sample to show games programming in J2ME
Timer and TimerTask example in J2ME
DateField sample program in J2ME