title: java.lang.NoClassDefFoundError: Could not initialize class XXX
body: <pre><code>public class PropHolder {
    public static Properties prop;
  
    static {
      //code for loading properties from file
    }
  }
  
  // Referencing the class somewhere else:
  Properties prop = PropHolder.prop;
  </code></pre>
  
  <p><code>class PropHolder</code> is a class of my own. The class resides in the same JAR file of the main class. So that should not because any JAR is missing from classpath.</p>
  
  <p>When I look in to the JAR file by <code>jar tf myjarfile</code>, I can see the <code>PropHolder.class</code> listed there.</p>
  
  <p>Btw: the code is running fine on my local machine. But couldn't work when I deploy it with some script onto a Linux server. So I think it is not the problem of the code.
  But for some reason. the deploy process is very hard to track.</p>
  
  <p>What could be the problem?</p>