Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Ubuntu Oneiric, I am mildly annoyed by the icon that apparently Java programs give themselves by default. It is too low a resolution. I have 'emblem' set as the overlay icon for Compiz's scale and this seems to be an acceptable resolution for this context. However, the icon that is got by the launcher is different to the one that scale gets and is a lower resolution. The Unity window switcher also gets an icon that it is too low a resolution.

Java Icons

I have scoured all my directories for any .png with the letter 'j' (in the hope of finding 'java.png' or 'jvm.png' or something) in it and replaced all appropriate ones with a high resolution alternative, which has red rays emanating from the mug in the icon (the Fænza—my current icon theme—variant). As you can see, the icons above still all have orange rays and are not the right resolution. I cannot find any reference now to a .png file with 'j' in it that looks like these icons.

I would like to know where these icons are coming from and whether it is possible to replace them with higher resolution versions. All my other icons are pretty.

share|improve this question
Not an answer, just feedback: If you supply your own icon to a Java application (e.g. JFrame.setIconImage), you will notice that the icon is also low resolution, regardless of the resolution of the image you provide. Unity's icon size is around 64x64. Even if you provide a 64x64 icon, you will notice it looks like the image loses resolution. I believe this is a Java bug, in which the icon gets scaled down, and then scaled back up again, thus losing resolution. – user50700 Mar 15 '12 at 7:01

I had this annoying low-res icons with applications and managed to solve it by explicitly specifying the higher resolution icon to be used.

I launched 'Main Menu', looked for the problematic application, clicked properties and then on the icon. I chose a new higher resolution icon for it. Remove it from launcher and add it again and it should now have the high resolution icon.

There is no one place where application icons are being placed. It can be /usr/share/pixmap, /usr/share/icons or installed application directory.
You can always download from the internet high resolution icon, save it to some directory and reference it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.