Search code examples
javaspringtomcatintellij-idea

Warning the selected directory is not a valid tomcat home


I installed Tomcat with home brew brew install tomcat. On Selecting Tomcat server to add a server to the application server I get this

Warning the selected directory is not a valid tomcat home.

However, running catalina start starts the tomcat server on my terminal.


Solution

  • Step 1.

    Download the tomcat with the tar.gz extension. NB. The tar.gz extention

    Step 2.

    Unzip the file and make sure the folder name remain tomcat, save it to your library.

    Step 3.

    Access the preference settings on your intellijIDEA

    • Under Build, Execution and Deployment, select application server.
    • Attempt to add a new server, click + and select Tomcat Server from the drop down.
    • Click on the ... elipse to select the folder you have unziped earlier into your library.
    • select the tomcat folder and boom.

    You are good to go, ready for use.