Skip to content

Commit

Permalink
Change how we determine the Java version (use Runtime.version() inste…
Browse files Browse the repository at this point in the history
…ad of setting environment variable)
  • Loading branch information
wcgunter committed Feb 21, 2024
1 parent 774a85f commit 59f8677
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cws-service/src/main/java/jpl/cws/controller/MvcCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ protected ModelAndView buildConfigurationModel(String message) {
model.addObject("historyDaysToLive", historyDaysToLive);
model.addObject("historyLevel", historyLevel);
model.addObject("javaHome", System.getenv("JAVA_HOME"));
model.addObject("javaVersion", System.getenv("JAVA_HOME_VERSION"));
model.addObject("javaVersion", Runtime.version().toString());
model.addObject("camundaVersion", System.getenv("CAMUNDA_VER"));

DiskUsage diskUsage = cwsConsoleService.getDiskUsage();
Expand Down
1 change: 0 additions & 1 deletion utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ function check_java_requirements () {

JAVA_HOME_VERSION=$("${JAVA_HOME}/bin/java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
print " JAVA_HOME Java version : ${JAVA_HOME_VERSION}"
export JAVA_HOME_VERSION="${JAVA_HOME_VERSION}"

JAVA_PATH_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
print " PATH Java version : ${JAVA_PATH_VERSION} $(which java)"
Expand Down

0 comments on commit 59f8677

Please sign in to comment.