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


i installed latest official release apache derby on windows 10.12.1.1 (october 11, 2015 / svn 1704137)

and try install in derby network server , goes fine localhost when execute command (java org.apache.derby.drda.networkservercontrol start -h myhost -p 1368) make accept ip other localhost error ( can see below every thing fine until command)

c:\>set derby_install=c:\apache\db-derby-10.12.1.1-bin   c:\>set classpath=%derby_install%\lib\derbyclient.jar;%derby_install%\lib\derbytools.jar;.   c:\>cd %derby_install%\bin   c:\apache\db-derby-10.12.1.1-bin\bin>setnetworkclientcp.bat   c:\apache\db-derby-10.12.1.1-bin\bin>set derby_home=c:\apache\db-der~1.1-b   c:\apache\db-derby-10.12.1.1-bin\bin>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>java org.apache.derby.tools.ij  ij version 10.12  ij> connect 'jdbc:derby://localhost:1527/mydbtest';  ij> disconnect;  ij> exit;   c:\apache\db-derby-10.12.1.1-bin\bin>java  org.apache.derby.drda.networkservercontrol start -p 1368  error: not find or load main class  org.apache.derby.drda.networkservercontrol   c:\apache\db-derby-10.12.1.1-bin\bin>cd..   c:\apache\db-derby-10.12.1.1-bin>cd lib   c:\apache\db-derby-10.12.1.1-bin\lib>java org.apache.derby.drda.networkservercontrol start -p 1368 

error: not find or load main class org.apache.derby.drda.networkservercontrol

and double check , make sure jar file derbynet.jar found in lib folder , contain class networkservercontrol

i found answer , want post in case face same problem, instead of using

 c:\apache\db-derby-10.12.1.1-bin\lib>java org.apache.derby.drda.networkservercontrol start -h hostname -p 1368 

just use way , it's work me

c:\apache\db-derby-10.12.1.1-bin\lib>java -jar derbynet.jar start -p hostname -p 1368 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -