title: Avoid crashing when class dependency is not present
body: <p>I've got a project that runs in two different scenarions:</p>
  
  <ol>
  <li>My package is present and it's alone</li>
  <li>My package is present and there's another package PK present</li>
  </ol>
  
  <p>In my project, I have a classes that extends, depends and imports from PK.</p>
  
  <ul>
  <li>When I execute in the scenario <strong>2</strong>, everything runs fine, and there's no issues on that.</li>
  <li>But when I execute the environment in the scenario <strong>1</strong>, I get <code>NoClassDefFoundError</code> due to not resolved classpath.</li>
  </ul>
  
  <p>The problem is that I only know if the other package is present or not at runtime, and I can't change the classpath.</p>
  
  <p>Does anyone know how can I solve this issue?</p>