Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 7 of 7
  1. #1
    alexkywalker is offline Registered User
    Join Date
    Sep 2002
    Location
    Illinois
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Setting up env. variables at startup for all users (incl. root)

    How do I setup environment variables at startup with GLOBAL visibility

    I am new to Macs and Mac OS X. I am running the following services on my Mac:
    - Tomcat
    - Jakarta Cactus
    - JUnit
    - Jakarta Ant

    Every time I have to work with these I have to setup a JAVA_HOME and a CLASSPATH environment variables, using "setenv".

    I already found how to automate this when a user (non-root) logs in, but I need these variables to be visible GLOBALLY.

    Do you know how can I do this?

    Thanks in advance.

    Alejandro

  2. #2
    btoneill's Avatar
    btoneill is offline keeper of the cheese
    Join Date
    Jul 2002
    Location
    Minneapolis, MN
    Posts
    797
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You want to make the following files:
    /etc/csh.login - this file should set the variables you want for csh and tcsh shells
    /etc/profile - this file should set the variables for Bourne based shells (sh,ksh,bash)

    This are run by the shell on login.

    Brian
    UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie

  3. #3
    dani++ is offline usin UNIX since '92
    Join Date
    Oct 2000
    Location
    Barcelona, Catalonia - Spain
    Posts
    249
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Take a look at:

    /usr/share/init/tcsh/README


    as well.


    dani++

  4. #4
    alexkywalker is offline Registered User
    Join Date
    Sep 2002
    Location
    Illinois
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Finally Working!

    It's working!

    After several unsuccessful attempts, I desperately searched the web and found this useful link that saved my life:

    How to Install Tomcat in Mac OS X

    Thanks for your help!

  5. #5
    mntamago is offline Registered User
    Join Date
    Oct 2001
    Location
    tokyo
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finally Working!

    Originally posted by alexkywalker
    It's working!

    After several unsuccessful attempts, I desperately searched the web and found this useful link that saved my life:

    How to Install Tomcat in Mac OS X

    Thanks for your help!
    One quick question...what OS are you running. 10.2 with the developer tools that come with it?
    mntamago

  6. #6
    alexkywalker is offline Registered User
    Join Date
    Sep 2002
    Location
    Illinois
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 10.1.5

    Nope, I am using 10.1.5

    Why the question? Are there any implications in the configuration that could be affecting me?

  7. #7
    mntamago is offline Registered User
    Join Date
    Oct 2001
    Location
    tokyo
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 10.1.5

    Originally posted by alexkywalker
    Nope, I am using 10.1.5

    Why the question? Are there any implications in the configuration that could be affecting me?
    No, No. No implications and such. It is rather a personal issue.

    What I mean is that I have been working with tomcat on my Mac OSX for a short while now. I was just starting to get up to running speed -i.e. I had just got all the applications I wanted to utilize in my development set up and running smoothly together - when 10.2 came out. And although I worried slightly about what might happen, when 10.2 arrived at my doorstep, I promptly installed it.

    Since that time tomcat has not worked. Thus, after reading you post I thought that perhaps I had found a glimmer of light in what otherwise is a rather dark tunnel at present.

    BTW perhaps you have already seen this page, but the page I used to setup tomcat is:

    http://developer.apple.com/internet/java/tomcat1.html

    Thanks for the info!

    m(_ _)m
    mntamago

 

 

Similar Threads

  1. Swap file limitations of OSX?
    By Fahrvergnuugen in forum Mac OS X System & Mac Software
    Replies: 10
    Last Post: August 26th, 2003, 09:56 PM
  2. Odd Stuff in my '~/System/Library/StartupItems' folder –*please help
    By eric halfabee in forum Mac OS X System & Mac Software
    Replies: 10
    Last Post: May 12th, 2002, 04:29 PM
  3. Apache 1.3.20, garbled apple_hfs_module
    By jiblet in forum Mac OS X System & Mac Software
    Replies: 23
    Last Post: September 21st, 2001, 03:26 PM
  4. Disk image mount problem
    By aufreak in forum Mac OS X System & Mac Software
    Replies: 13
    Last Post: May 10th, 2001, 06:52 PM
  5. HORIBLE EVIL BUG, Wrecks computer
    By bfc in forum Mac OS X System & Mac Software
    Replies: 12
    Last Post: October 22nd, 2000, 02:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •