You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
"ant build" failed with JAVA_HOME set to a directory one level below where it should have been. I fixed the problem by fixing the JAVA_HOME correctly. (In my environment, JAVA_HOME was set correctly to begin with.) I am opening this bug in case this is an OLTPBench issue where it might be attaching 'jre' at the end.
My fix appears after the error log.
Thanks,
Arun
[root@vm-arunm oltpbench]# ant build
Buildfile: /mnt/ssd2/oltpbench/build.xml
build:
BUILD FAILED
/mnt/ssd2/oltpbench/build.xml:76: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/jre"
Total time: 0 seconds
Workaround:
[root@vm-arunm oltpbench]# export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64"; ant build
Buildfile: /mnt/ssd2/oltpbench/build.xml
build:
[javac] Compiling 66 source files to /mnt/ssd2/oltpbench/build
[javac] Note: /mnt/ssd2/oltpbench/src/com/oltpbenchmark/benchmarks/tpch/TPCHLoader.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: /mnt/ssd2/oltpbench/src/com/oltpbenchmark/DBWorkload.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 6 files to /mnt/ssd2/oltpbench/build
[javac] Compiling 5 source files to /mnt/ssd2/oltpbench/build/tests
BUILD SUCCESSFUL
Total time: 3 seconds
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
"ant build" failed with JAVA_HOME set to a directory one level below where it should have been. I fixed the problem by fixing the JAVA_HOME correctly. (In my environment, JAVA_HOME was set correctly to begin with.) I am opening this bug in case this is an OLTPBench issue where it might be attaching 'jre' at the end.
My fix appears after the error log.
Thanks,
Arun
Workaround:
The text was updated successfully, but these errors were encountered: