How to Check Which Java Version is in Use

Goal

Check which Java Virtual Machine (JVM) and Java version was used to start Datameer.

Learn

Prerequisite 

You have set up aliases in your shell

Check

  • Check which Java Virtual Machine (JVM) was used to start Datameer:
    dmver
  • You can use a more specific alias:
    alias dmjava='ps -ef | grep -i "java.*jetty.*datameer" | grep -v grep | tr -s " " | cut -d " " -f8'
    `dmjava` -XshowSettings:properties -version
  • Check the environment:
    env | grep JAVA_HOME
    env | grep java
    echo $JAVA_HOME
    $JAVA_HOME/bin/java -XshowSettings:properties -version
  • Compare versions and validate that they are the versions expected.

Further Information

Which JRE am I using?
RuntimeException: Task: Error: Unsupported major.minor version