Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion oltpbenchmark
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#!/bin/bash
java -Xmx8G -cp `./classpath.sh bin` -Dlog4j.configuration=log4j.properties com.oltpbenchmark.DBWorkload $@

JAVA_VERSION=`java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \"`

# TODO: Java10 will remove java.xml.bind so we'll need to add JAX-B APIs to the classpath for JDK10+

if [[ "$JAVA_VERSION" > "9" ]]; then
JAVA_9_COMPAT="--add-modules java.xml.bind"
else
JAVA_9_COMPAT=""
fi

java -Xmx8G $JAVA_9_COMPAT -cp `./classpath.sh bin` -Dlog4j.configuration=log4j.properties com.oltpbenchmark.DBWorkload $@