Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Tomcat not starting up on MacOS X

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just downloaded the zip file of Tomcat 8.0.14. But I am not able to start it.
I have setup my $CATALINA_HOME environment variable to /Library/Java/Tomcat and then tried to invoke file like this:
this is what I got:

This shows that Tomcat has started. But when I try to open http://localhost:8080 on all my browsers(chrome, mozilla, safari, opera and my personally made JavaFX browser), they complain that the page was not found.

When I try to shutdown Tomcat as:

It gives me this output:

It says, "java: No such file or directory".

Whats is wrong with this? Am I missing something? This never happened on my windows PC I had an year ago. Please Help.

My JDK version - JDK 1.8
Saloon Keeper
Posts: 22637
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's an awfully strange setting for JAVA_HOME.

You SHOULD be able to issue the command:

from your command line and see Java run. If not, then it's definitely not the right value.

I'd actually expect something like:


Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're almost there on the JAVA_HOME; but you want to look in /System/Library/Java/JavaVirtualMachines. I just read this path is deprecated so I'm not sure what the current information really is.

Take a look at:

It is confusing; but there is some information there that could be helpful.
    Bookmark Topic Watch Topic
  • New Topic