Hi Nigel,
- Is there a way I can close the command prompt window but leave BaseX
server running as a process in the background?
there is no option in windows like the nohup option in linux which puts the commands in background. So you have to create a service with the basex startup on your machine and start this.
Another way is to start it like this: start /B java -cp basex.jar org.basex.BaseXServer
this will let you get back to the command line (with enter). But when you close the console the server is closed too.
Another way is to install cygwin (http://www.cygwin.com/) and run it like on a linux machine: nohup java -cp basex.jar org.basex.BaseXServer &
Kind regards, Andreas
Nigel Alderton schrieb:
Thanks very much. That worked.
But unfortunately it doesn't return to the command line prompt, and if I manually close the command window, the BaseX server stops.
- Is this behaviour intentional?
- Is there a way I can close the command prompt window but leave BaseX
server running as a process in the background?
Thanks again. Sorry to bother you with such newbie questions!
Nigel
-----Original Message----- From: Andreas Weiler [mailto:andreas.weiler@uni-konstanz.de] Sent: 16 July 2010 11:48 To: Nigel Alderton Cc: basex-talk Subject: Re: [basex-talk] How to start BaseX server windows from the command line?
Dear Nigel,
yes you need to download the basex.jar file. Then you have to execute: java -cp BaseX61.jar org.basex.BaseXServer
See for more information: http://www.inf.uni-konstanz.de/dbis/basex/server
I hope this helps.
Kind regards, Andreas
Nigel Alderton schrieb:
Thanks Andreas, I tried that but an error appeared:
C:\Program Files\BaseX>java -cp basex.jar org.basex.BaseXServer Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXServer Caused by: java.lang.ClassNotFoundException: org.basex.BaseXServer at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: org.basex.BaseXServer. Program will exit.
I only have one file: BaseX.exe in c:\program files\BaseX. Do I need to download basex.jar to get the standalone server version of BaseX?
Is there any online documentation regarding configuring an running BaseX
on
windows?
Nigel
-----Original Message----- From: Andreas Weiler [mailto:andreas.weiler@uni-konstanz.de] Sent: 16 July 2010 11:32 To: Nigel Alderton Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] How to start BaseX server windows from the
command
line?
Dear Nigel,
just start it with: java -cp basex.jar org.basex.BaseXServer
Kind regards, Andreas
Nigel Alderton schrieb:
Hi,
How can I start the windows version of the BaseX server from the command line ie. **without** using the client user interface File - Server Administration - Start?
I want to configure BaseX server to start when my PC starts? Can this be done, if so how?
I have BaseX Version 6.1.
Thanks,
Nigel
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk