Home  >  Q&A  >  body text

linux - macbook tomcat configuration problem?

When the macbook system configures tomcat, it appears:

Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variables is needed to run this program

How to deal with it

扔个三星炸死你扔个三星炸死你2673 days ago938

reply all(2)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-24 09:44:50

    First make sure the JDK is installed and the Java environment variables are configured properly.
    Verification method:
    Enter in the terminal

    java -version

    It is normal if the corresponding version number is displayed, otherwise please install JDK and configure Java environment variables first.
    Reference address:
    Set up Java development environment on MacBook Pro

    reply
    0
  • 高洛峰

    高洛峰2017-06-24 09:44:50

    tomcat runs in jvm, you need to install jdk first.

    reply
    0
  • Cancelreply