I am setting up Apache Tomcat on my OS X 10.6.2 and need to know where my .profile file is, for setting environment variables. I thought it was in the root of my home directory, but I cannot find it.
Asked
Active
Viewed 5,355 times
4 Answers
3
The .profile
file isn't created by default.
To set the environment variables make a file called .profile
in the root of your home directory (/Users/<yourshortname>/
or ~/
for short) and put the necessary variables in it. Tomcat will find it automatically based on the name.

blahdiblah
- 179
- 1
- 7
2
Users don't get a profile by default -- they use the systemwide shell at /etc/profile.

duffbeer703
- 20,797
- 4
- 31
- 39
0
It may not be created, but should source successfully if you create a new file at ~/.profile
. Try a simple alias
or something similar and see if it works.

Andrew Flanagan
- 170
- 7