How to start BaseX server windows from the command line?

Friday, 16 July 2010 · 4 messages
NA
Nigel Alderton16 Jul 2010 12:29 #
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
AW
Andreas Weiler16 Jul 2010 12:32 #
Dear Nigel, just start it with: java -cp basex.jar org.basex.BaseXServer Kind regards, Andreas
Quoted text · Nigel Alderton · 24 lines
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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AW
Andreas Weiler16 Jul 2010 12:47 #
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
Quoted text · Andreas Weiler · 65 lines
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 at uni-konstanz.de] > Sent: 16 July 2010 11:32 > To: Nigel Alderton > Cc: basex-talk at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> > >
AW
Andreas Weiler16 Jul 2010 14:45 #
Hi Nigel,
Quoted text · Andreas Weiler · 2 lines
> 2. 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
Quoted text · Andreas Weiler · 110 lines
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. > > 1. Is this behaviour intentional? > 2. 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 at 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 at uni-konstanz.de] >> Sent: 16 July 2010 11:32 >> To: Nigel Alderton >> Cc: basex-talk at 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 at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >>> >> >> > >

⚡Generated with XQuery