Getting tomcat to work on Mac; permission problems

I downloaded and unzipped tomcat 6.0 on my Macbook to the directory /Applications/tomcat/, and tried to run bin/ It said it couldn't find "", which is in the same directory. So I did a chmod on

> sudo chmod 666 /Applications/tomcat/bin/

Then it had a new complaint:

> sh /Applications/tomcat/bin/
   The BASEDIR environment variable is not defined correctly
   This environment variable is needed to run this program

Turned out I needed to give appropriate rights to the tomcat dir. I did it a bit rude, by just giving full access:

> sudo chmod 777 /Applications/tomcat/*

Now it worked like it should. Yippie!
I guess it had to do with the fact that the zip file was downloaded. Mac always asks if I really want to open a downloaded file, so it must have some security restrictions. Anyways, it works, and hope it helps you too :-) Digg StumbleUpon Facebook Technorati Fav reddit Google Bookmarks
| Viewed 4054 times
  1. Dan Skaggs

    #1 by Dan Skaggs - September 23, 2010 at 9:37 PM

    I always create an /opt folder off my main volume root and unzip Tomcat to /opt/tomcat. I can't remember ever having any problems starting it up from there.
(will not be published)
Leave this field empty