#!/bin/bash


# Directory containing JAR files
jar_dir="/usr/local/tomcat/atomikos_libs"

# Initialize classpath variable
classpath="."

# Iterate through JAR files in the directory
for file in "$jar_dir"/*.jar; do
    # Add each JAR file to the classpath
    classpath="$classpath:$file"
done


jar_dir="/usr/local/tomcat/lib"

# Iterate through JAR files in the directory
for file in "$jar_dir"/*.jar; do
    # Add each JAR file to the classpath
    classpath="$classpath:$file"
done


# Set the classpath for Java
export CLASSPATH="$classpath"

