db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik" <dag.wan...@oracle.com>
Subject Re: Apache Derby Command Line?
Date Tue, 25 Feb 2014 18:09:12 GMT

On 22. feb. 2014 02:48, Turtles wrote:
> I have java defined already the full command line would look like:
>
> C:\Java Server JRE\jdk1.7.0_51\bin\java.exe -jar derby.jar %DERBY_OPTS%
> -classpath "%DERBY_RUNPATH%" org.apache.derby.drda.NetworkServerControl
> start

If you use the -jar option, you need to refer to derbyrun.jar rather 
than derby.jar.
In this case you don't need the classpath either,

just do:

java -jar <path>/derbyrun.jar server start

IF you omit the -jar option you will need the full classpath including 
all the relevant jars (derby.jar derbynet.jar and any of the 
localization jars needed).

Dag

>
> And in environment variables for the firedaemon service:
>
> JAVA_HOME: C:\Java Server JRE\jdk1.7.0_51
> CLASSPATH:
> C:\db-derby-10.10.1.1-bin\bin\../lib/derby.jar;C:\db-derby-10.10.1.1-bin\bin\../lib/derbynet.jar;C:\db-derby-10.10.1.1-bin\bin\../lib/derbyclient.jar;C:\db-derby-10.10.1.1-bin\bin\../lib/derbytools.jar
>
> So is it possible to even run it via command line?
>
>
>
> --
> View this message in context: http://apache-database.10148.n7.nabble.com/Apache-Derby-Command-Line-tp137335p137339.html
> Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message