tomcat - How do I find what Java version Tomcat6 is using? -


is there os command find java version tomcat6 using? need use perl (including system()) command.

i using linux. ubuntu , centos

is there like?

     tomcat6 version 

at first need understand first, tomcat java application. so, see java version tomcat using, can find script file tomcat started, catalina.sh.

inside file, below:

catalina.sh:#   java_home       must point @ java development kit installation. catalina.sh:#                   defaults java_home if empty. catalina.sh:  [ -n "$java_home" ] && java_home=`cygpath --unix "$java_home"` catalina.sh:  java_home=`cygpath --absolute --windows "$java_home"` catalina.sh:    echo "using java_home:       $java_home" 

by default, java_home should empty, mean use default version of java, or can test with: echo $java_home

and use "java -version" see version default java is.

and vice versa setting property: java_home, can configure java version use when starting tomcat.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -