 <p>It possible you're not making those calls early enough, and the classes that use them have already been loaded and initialized themselves.</p> <p>A good test/quick fix would be to make a separate Main class that only makes those calls, then calls the class you are currently using to start your app.</p> <p>You might even have to call those in a static initializer (not in main), because once you execute main, all the classes it references will be loaded first.</p> <p>You could also use reflection to load and execute your class from Main, that's kind of messy and <em>probably</em> not required.</p>