title: How can I include my icon when I export my project to a jar file
body: <p>I have developed an desktop application. The problem is when I export the application to jar file the icon isn't shown in the app. When I run it from Eclipse all icons are shown there.</p>
  
  <p>An example from my project:</p>
  
  <pre><code>package net.ebank.gui;
  
  import java.awt.*;
  import javax.swing.*;
  
  
  public class EBank extends JFrame {
  
      protected Start s;
  
  
      public EBank() {
  
          setTitle("Welcome To EBank");
  
          setBackground(Color.white);
  
  
          Image img = new ImageIcon("../EBank/res/bank.jpg").getImage();
          this.setIconImage(img);
  
          /*"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"
          "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"*/
  
          setVisible(false);
  
          setSize(1350,700);
  
          setDefaultCloseOperation(this.EXIT_ON_CLOSE);
  
          try {
  
              UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
          } catch (ClassNotFoundException e) {
  
              // TODO Auto-generated catch block
  
              e.printStackTrace();
          } catch (InstantiationException e) {
  
              // TODO Auto-generated catch block
  
              e.printStackTrace();
          } catch (IllegalAccessException e) {
              // TODO Auto-generated catch block
  
              e.printStackTrace();
          } catch (UnsupportedLookAndFeelException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
  
          s= new Start(this);
  
          s.setLocation(getWidth()/2, getHeight()/4);
  
  
      }
  
      public static void main(String[] args){
          new EBank();
      }
  
  }
  </code></pre>