Difference between revisions of "Start Scripts"

From BaseX Documentation
Jump to navigation Jump to search
Line 1: Line 1:
 
The following start scripts, which are mentioned on the [[Startup]] page, are also included in the official releases.
 
The following start scripts, which are mentioned on the [[Startup]] page, are also included in the official releases.
You might need to modify the path to the BaseX directory to get them running:
+
You might need to modify the path to the BaseX directory to get them running.
 +
 
 +
==BaseX GUI, Server, Client and Standalone==
  
 
===Windows===
 
===Windows===
Line 40: Line 42:
  
 
Note: Please replace 'XXX' with the mode you want to start, which is either <code>BaseXServer</code>, <code>BaseXGUI</code>, or <code>BaseX</code>.
 
Note: Please replace 'XXX' with the mode you want to start, which is either <code>BaseXServer</code>, <code>BaseXGUI</code>, or <code>BaseX</code>.
 +
 +
==BaseX REST Server==
 +
 
[[Category:Beginner]]
 
[[Category:Beginner]]

Revision as of 23:14, 23 January 2011

The following start scripts, which are mentioned on the Startup page, are also included in the official releases. You might need to modify the path to the BaseX directory to get them running.

BaseX GUI, Server, Client and Standalone

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 Options for virtual machine
set VM=-Xmx1g

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

Linux/Mac

#!/bin/bash

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

# Paths to distributed files or source directories
BXPATH=basex.jar

# Options for virtual machine
VM=-Xmx1g

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

Note: Please replace 'XXX' with the mode you want to start, which is either BaseXServer, BaseXGUI, or BaseX.

BaseX REST Server