summarylogtreecommitdiffstats
path: root/beast2-environment
blob: 4e6e390ed2be97567bec1ec303b60372739f0c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

# General environment for beast2, sourced by other beast2 excutables

export JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/default}
export BEAST=/usr/share/beast2
export DEFAULT_CP="/usr/share/beast2/lib/beagle.jar"
export BEAST_LIB="$BEAST/lib"
export JAVA="$JAVA_HOME"/bin/java
JFX="$JAVA_HOME/lib"
export CLASS_PATH="/usr/share/beast2/lib:${JFX}"


jfx_modules=(
    controls
    fxml
    graphics
    base
    web
    media
    swing
)
for mod in ${jfx_modules[@]}
do
    JFX_LIBS="$JFX_LIBS:$JFX/javafx.${mod}.jar"
done

loaded_jfx_modules=(
  controls
  fxml
)
JFX_MODULES=$(printf "javafx.%s," "${loaded_jfx_modules[@]}" |sed 's/,*$//g')

export JFX_LIBS
export JFX_MODULES

# use BEAGLE_LIB if the BEAGLE library is not in a standard location
export BEAST_EXTRA_LIBS="$BEAST_EXTRA_LIBS:$BEAGLE_LIB"