Derby Error: Could not find or load main class org.apache.derby.drda.NetworkServerControl
<p>I just installed the latest official release from Apache Derby on windows 10.12.1.1 (October 11, 2015 / SVN 1704137)</p>

<p>and try to install it in as Derby network server and everything goes fine with localhost but when I execute this command (java org.apache.derby.drda.NetworkServerControl start -h myhost -p 1368) to make it accept IP other than localhost I get this error ( as you can see below every thing is fine until this command)</p>

<pre><code>C:\&gt;set DERBY_INSTALL=C:\Apache\db-derby-10.12.1.1-bin


C:\&gt;set CLASSPATH=%DERBY_INSTALL%\lib\derbyclient.jar;%DERBY_INSTALL%\lib\derbytools.jar;.


C:\&gt;cd %derby_install%\bin


C:\Apache\db-derby-10.12.1.1-bin\bin&gt;setNetworkClientCP.bat


C:\Apache\db-derby-10.12.1.1-bin\bin&gt;SET DERBY_HOME=C:\Apache\DB-DER~1.1-B


C:\Apache\db-derby-10.12.1.1-bin\bin&gt;set CLASSPATH=C:\Apache\DB-DER~1.1-B\lib\derbyclient.jar;C:\Apache\DB-DER~1.1-B\lib\derbytools.jar;C:\Apache\DB-DER~1.1-B/lib/derbyoptionaltools.jar;C:\Apache\db-derby-10.12.1.1-bin\lib\derbyclient.jar;C:\Apache\db-derby-10.12.1.1-bin\lib\derbytools.jar;.


C:\Apache\db-derby-10.12.1.1-bin\bin&gt;java org.apache.derby.tools.ij

ij version 10.12

ij&gt; connect 'jdbc:derby://localhost:1527/MyDbTest';

ij&gt; disconnect;

ij&gt; exit;


C:\Apache\db-derby-10.12.1.1-bin\bin&gt;java 
org.apache.derby.drda.NetworkServerControl start -p 1368

Error: Could not find or load main class 
org.apache.derby.drda.NetworkServerControl


C:\Apache\db-derby-10.12.1.1-bin\bin&gt;cd..


C:\Apache\db-derby-10.12.1.1-bin&gt;cd lib


C:\Apache\db-derby-10.12.1.1-bin\lib&gt;java org.apache.derby.drda.NetworkServerControl start -p 1368
</code></pre>

<p>Error: Could not find or load main class org.apache.derby.drda.NetworkServerControl </p>

<p>and I double check and make sure that the jar file derbynet.jar is found in lib folder and also contain the class NetworkServerControl</p>