Difference between revisions of "Start Scripts"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | The starting script files mentioned in the [[Startup Overview|startup overview]] are available in the BaseX.zip or with the Windows Installer. They can be used for every mode of BaseX and | + | The starting script files mentioned in the [[Startup Overview|startup overview]] are available in the BaseX.zip or with the Windows Installer. They can be used for every mode of BaseX and started on every operating system. |
If you didn't download them or can't find them you can use the scripts below on that page. | If you didn't download them or can't find them you can use the scripts below on that page. | ||
− | + | ||
− | + | Note: You might need to modify the path to the <code>BaseX.jar</code> archive in the script. | |
+ | |||
All modes of BaseX can be started with the following scripts: | All modes of BaseX can be started with the following scripts: | ||
Line 22: | Line 23: | ||
REM Run BaseX | REM Run BaseX | ||
− | java -cp "%BXPATH%" %VM% org.basex. | + | java -cp "%BXPATH%" %VM% org.basex.XXX %* |
@endlocal | @endlocal | ||
Line 43: | Line 44: | ||
# Run BaseX | # Run BaseX | ||
− | java -cp "$BXPATH" $VM org.basex. | + | java -cp "$BXPATH" $VM org.basex.XXX "$@" |
</pre> | </pre> | ||
− | Note: You have to replace ' | + | Note: You have to replace 'XXX' in the Java command line with the mode you want to start, which is either <code>BaseXServer</code>, <code>BaseXGUI</code>, or <code>BaseX</code>. |
Revision as of 23:33, 11 January 2011
The starting script files mentioned in the startup overview are available in the BaseX.zip or with the Windows Installer. They can be used for every mode of BaseX and started on every operating system. If you didn't download them or can't find them you can use the scripts below on that page.
Note: You might need to modify the path to the BaseX.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.XXX %* @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.XXX "$@"
Note: You have to replace 'XXX' in the Java command line with the mode you want to start, which is either BaseXServer
, BaseXGUI
, or BaseX
.