Changes

Jump to navigation Jump to search
1,353 bytes added ,  00:16, 24 January 2011
no edit summary
You might need to modify the path to the BaseX directory to get them running.
==BaseX GUI, Server, Client and StandaloneMain Package==
===Windows===
==BaseX REST Server==
The script files for starting the [[JAX-RX API|JAX-RX]] Server can be found below.
You might need to modify the path to the jar archive in the script:
===Windows===
 
<pre class="brush:bash">
@setlocal
@echo off
 
REM Path to this script
set PWD=%~dp0
 
REM Paths to distributed files or source directories
set BASEX=%PWD%/basex-%BXVERSION%.jar
set BASEXAPI=%PWD%/basex-api-%BXVERSION%.jar
 
REM Classpath
set LIB=%PWD%/../lib
set CP=%BASEX%;%BASEXAPI%;%LIB%/jax-rx-1.2.8.jar;%LIB%/jetty-6.1.25.jar;%LIB%/jetty-util-6.1.25.jar;
set CP=%CP%;%LIB%/servlet-api-2.5-20081211.jar;%LIB%/jersey-server-1.4.jar;%LIB%/jersey-core-1.4.jar;%LIB%/asm-3.1.jar
 
REM Options for virtual machine
set VM=-Xmx1g
 
REM Run JAX-RX server
java -cp "%CP%;." %VM% org.basex.api.jaxrx.JaxRxServer %*
</pre>
 
===Linux/Mac===
 
<pre class="brush:bash">
#!/bin/bash
 
# Path to this script
PWD=`dirname $0`
 
# Paths to distributed files or source directories
BASEX=$PWD/basex.jar
BASEXAPI=$PWD/basex-api.jar
 
# Classpath
LIB=$PWD/../lib
CP=$BASEX:$BASEXAPI:$LIB/jax-rx-1.2.8.jar:$LIB/jetty-6.1.25.jar:$LIB/jetty-util-6.1.25.jar:
CP=$CP:$LIB/servlet-api-2.5-20081211.jar:$LIB/jersey-server-1.4.jar:$LIB/jersey-core-1.4.jar:$LIB/asm-3.1.jar
 
# Options for virtual machine
VM=-Xmx1g
 
# Run JAX-RX server
java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@"
</pre>
 
[[Category:JAX-RX]]
[[Category:Developer]]
[[Category:Beginner]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu