Apache Derby Command Line?

2014-02-21 Thread 3Turtles
I'm trying to get Apache Aerby to run as a windows service with 
FireDaemon and i need to use command line parameters rather than the 
batch scripts to start/stop Apacher Derby.


I've tried copying some of the startup parameters from the batch file 
but it's not working.


My command line is:

-jar derby.jar %DERBY_OPTS% -classpath %DERBY_RUNPATH% 
org.apache.derby.drda.NetworkServerControl start


I have the following environment variables set too:

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


Any idea if i can even run Apache Derby with command line parameters?


Re: Apache Derby Command Line?

2014-02-21 Thread Bryan Pendleton

My command line is:

-jar derby.jar %DERBY_OPTS% -classpath %DERBY_RUNPATH% 
org.apache.derby.drda.NetworkServerControl start


Is it a typo? It looks like you are missing the word java
at the start of your command line.

thanks,

bryan



Re: Apache Derby Command Line?

2014-02-21 Thread Turtles
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

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.


Re: Apache Derby Command Line?

2014-02-21 Thread Peter Ondruška
C:\Java Server JRE\jdk1.7.0_51\bin\java.exe should be:
C:\Java Server JRE\jdk1.7.0_51\bin\java.exe

Peter

 On 22 Feb 2014, at 02:48, Turtles 3turt...@videotron.ca wrote:
 
 C:\Java Server JRE\jdk1.7.0_51\bin\java.exe