Skip to content

Commit

Permalink
Revert "Add JavaVersionChecker to check Java version for compatibilit…
Browse files Browse the repository at this point in the history
…y before… (#13356)" (#13364)

This reverts commit 620a654.
  • Loading branch information
robbavey authored Oct 26, 2021
1 parent 620a654 commit e619b7a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 161 deletions.
3 changes: 0 additions & 3 deletions bin/logstash.bat
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ if "%MAYBE_JVM_OPTIONS_PARSER_FAILED%" == "jvm_options_parser_failed" (
)
set JAVA_OPTS=%LS_JAVA_OPTS%

rem check the Java version
%JAVA% -cp "%CLASSPATH%" "org.logstash.util.JavaVersionChecker" || exit /b 1

%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" org.logstash.Logstash %*

goto :end
Expand Down
5 changes: 0 additions & 5 deletions bin/logstash.lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ setup_java() {
export JAVACMD

CLASSPATH="$(setup_classpath $LOGSTASH_JARS)"

# Verify the version of Java being used, and exit if the wrong version of Java is not available.
if ! "${JAVACMD}" -cp "${CLASSPATH}" org.logstash.util.JavaVersionChecker ; then
exit 1
fi
JAVA_OPTS=`exec "${JAVACMD}" -cp "${CLASSPATH}" org.logstash.launchers.JvmOptionsParser "$LOGSTASH_HOME" "$LS_JVM_OPTS"`
unset CLASSPATH
export JAVA_OPTS
Expand Down
80 changes: 0 additions & 80 deletions logstash-core/src/main/java/org/logstash/util/JavaVersion.java

This file was deleted.

This file was deleted.

0 comments on commit e619b7a

Please sign in to comment.