Difference between revisions of "Start Scripts"

From BaseX Documentation
Jump to navigation Jump to search
Line 22: Line 22:
  
 
REM Run BaseX
 
REM Run BaseX
java -cp "%BXPATH%" %VM% org.basex.XXX %*
+
java -cp "%BXPATH%" %VM% org.basex.X %*
  
 
@endlocal
 
@endlocal
Line 43: Line 43:
  
 
# Run BaseX
 
# Run BaseX
java -cp "$BXPATH" $VM org.basex.XXX "$@"
+
java -cp "$BXPATH" $VM org.basex.X "$@"
 
</pre>
 
</pre>
  
Note: You have to replace XXX in the java command line with the mode you want to start (BaseXServer, BaseXGUI or BaseX).
+
Note: You have to replace 'X' in the java command line with the mode you want to start (BaseXServer, BaseXGUI or BaseX).

Revision as of 14:13, 11 January 2011

The starting script files are available in the BaseX.zip and the windows installer for every mode of BaseX and can be started on every operating system. If you didn't download them or can't find them you can use the scripts found below on that page.
Note: Probably you have to modify the path to the jar archive in the script.

All modes of BaseX can be started with the following scripts:

Windows

@setlocal
@echo off

REM Path to this script
set PWD=%~dp0

REM Paths to distributed files or source directories
set BXPATH=basex.jar
REM set BXPATH=%PWD%/../target/classes

REM Options for virtual machine
set VM=-Xmx1g

REM Run BaseX
java -cp "%BXPATH%" %VM% org.basex.X %*

@endlocal

Others

#!/bin/bash

# Path to this script
PWD=`dirname $0`

# Paths to distributed files or source directories
BXPATH=basex.jar
#BXPATH=$PWD/../target/classes

# Options for virtual machine
VM=-Xmx1g

# Run BaseX
java -cp "$BXPATH" $VM org.basex.X "$@"

Note: You have to replace 'X' in the java command line with the mode you want to start (BaseXServer, BaseXGUI or BaseX).