I put only one of three enumerations, application starts but icons are not found. (used in a linked button or in a metod to show image near enumeration in a drop-down list)
To use icons that are located in source code of the project you should specify source of icons as classpath resources in the following way: classpath:/path/to/your/icon/from/root/icon.png.
Or you can create a folder named icons under the sources root and put icons there. It allows you to use the following icon sources:
Hello,
I do not know what appened but Assembling project I get this error:
import com.haulmont.cuba.gui.icons.Icons;
^
/home/demassis/studio-projects/Contacts/modules/web/themes/halo/icons/flagsWorldMini.java:5: error: package Icons does not exist
public enum flagsWorldMini implements Icons.Icon {
^
/home/demassis/studio-projects/Contacts/modules/web/themes/halo/icons/flagsWorldMini.java:214: error: method does not override or implement a method from a supertype
@Override
^
Icons are in path as in your example and correctly configured in web-app.properties
It’s hard to say what exactly wrong in your case without sources. There is no any configuration that can influence classpath, and I think that the reason is not a wrong classpath.