title: Eclipse created User Library (with Hibernate jars) to the project as System library
body: <p>I created a HelloWorld hibernate app (hibernate.cfg.xml + one POJO class + one main class to persist pojo class object in DB). For this one - I created user library with required Hibernate jars and added it to the project, BUT for some reason while creating my custom user Hibernate library I checked "System Library (added to the boot class path)" checkbox.</p>
  
  <p>I tried to run the app and got </p>
  
  <pre><code>    Exception in thread "main" java.lang.ExceptionInInitializerError
      at org.hibernate.cfg.Configuration.reset(Configuration.java:309)
      at org.hibernate.cfg.Configuration.&lt;init&gt;(Configuration.java:275)
      at org.hibernate.cfg.Configuration.&lt;init&gt;(Configuration.java:279)
      at com.woworks.secondhibernate.main.HibernateTest.main(HibernateTest.java:22)
  Caused by: java.lang.NullPointerException
      at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)
      at org.hibernate.cfg.Environment.&lt;clinit&gt;(Environment.java:220)
      ... 4 more
  </code></pre>
  
  <p>If I uncheck this "System Library (added to the boot class path)" - everything works fine. Can someone please explain why this happens and what it the purpose of "System Library (added to the boot class path)"</p>
  
  <p>Thanks!</p>