Why I get "java.lang.noclassdeffounderror...caused by java.lang.classnotfoundexception"
<p>I'm developing an application (call it App) which uses a jar library of mine (call it MyLib).
My Lib uses another jar file "cplex" which calls a dll at run time.</p>

<p>Then, by doing so, I get the "java.lang.noclassdeffounderror...caused by java.lang.classnotfoundexception" error.</p>

<p>However, if I directly create a package in App with the same classes of MyLib (imprting the cplex jar file in App), I don't get the error!</p>

<p>Why?</p>

<p>I think the problem is not due to classpath otherwise I should always get the error.</p>

<p>Any idea?</p>

<p>Thanks</p>
