#!/bin/bash
# jasperstarter8.sh

# === Configuration de Java ===
export JAVA_HOME=/home/tisa9300/jdk8
export PATH=$JAVA_HOME/bin:$PATH

# === Chemin vers JasperStarter ===
export JASPERSTARTER_HOME=/home/tisa9300/jasperstarter

# === Chemin des polices ===
export FONTS_PATH=$JASPERSTARTER_HOME/lib/fonts

# === Classpath complet incluant JasperStarter, MySQL et les polices ===
CLASSPATH="$JASPERSTARTER_HOME/lib/jasperstarter.jar:$JASPERSTARTER_HOME/lib/NumberToWordsFR.jar:$JASPERSTARTER_HOME/lib/mysql-connector-j-8.0.33.jar:$FONTS_PATH/*"

# === Exécution de JasperStarter ===
java -cp "$CLASSPATH" de.cenote.jasperstarter.App "$@"
