How to set environment variables in mac mavericks for all users

Can someone here tell me the file to set JAVA_HOME environment variable for all users?
Thanks!

nara999999,
the file in which to set the environment variable depends upon the login shell of each user. Presuming that every user has bash as his login shell, and that the environment variable will be needed only in interactive shells, then the file to edit will be /etc/bashrc; if the environment variable will also be needed in non-interactive shells, then  /etc/profile should be edited instead (and this will also cover users with either sh or zsh as their login shell). If ksh is used as a login shell, then /etc/ksh.kshrc will need to be edited. If csh or tcsh is used as a login shell, then /etc/csh.login will need to be edited.

Similar Messages

  • How to set a customized search results template for all users

    Hi.
    I know the customized search results views are stored in a file called pne_portal.hda that resides on every user's subfolder in data/users/profiles/...
    Is there a way to set a customized search results template for all users? If it's impossible, is there a way to modify the Headline view? I'm not able to find the resource or template where this view is.
    Thanks in advance.

    I wasn't able to understand what was meant by this post. Therefore, I modified the standard template HeadLine View.
    Columns for this template are defined in the include slim_search_result_table_header_setup (in std_page.htm).
    Here is the modification of the code:
    <$if customTemplateId and not (baseTemplateId like customTemplateId)$>
              <$columnsString = utGetValue("customlisttemplates/" & strLower(customTemplateId), "columns")$>          
              <!-- Modify START by Oracle-->
         <$else$>
    <!-- here add default fields -->
              <$columnsString="dDocName,dDocTitle,dInDate,dDocAuthor"$>
    <!-- here add your custom fields -->
              <$columnsString=columnsString&",xComment"$>
              <!-- Modify END by Oracle-->
         <$endif$>

  • How to set Password expiration at 45 days for all users (new or existing)

    Hey all please suggest suitable way to set password expiration at 45 days of all application users.
    i am using APPS R -12.1.3 ...

    reply with possible ways.
    URGENT...

  • How to set environment variables in WL ?

    Hi,
    How to set environment variables in WL ?
    Thanks,
    Srivi

    Hi,
    You can set the environmet variable in Weblogic by using the below commands
    setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
    Overview of WebLogic Server Domains
    or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
    To run SetDomainEnv.sh in Linux please use
    . ./setDomainEnv.sh it require two dots (Dont miss it )
    http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
    Hope it helps

  • How to set environment variable ORACLE_HOME ?

    Hi
    I trying to install SAP Solution manager 4.0 SR3:
    OS: Linux RHEL4u4
    DB: Oracle
    SAPinst now stops the installation.
    To proceed with the installation, install the Oracle database as follows:
    1.Log in as user orassm.
    2.Set the DISPLAY variable.
    3.Change to directory /oracle/stage/102_32/database/SAP.
    4.Start './RUNINSTALLER'.
    After you installed the Oracle database software, proceed with the database instance
    installation by choosing 'OK' in this dialog box.
    ./RUNINSTALLER
    oracle_stage is not set (OK)
    oracle_base is not set (OK)
    oracle_home is not set (OK)
    oracle_sid is not set (OK)
    oracle_home_name is not set (OK)
    oracle_inst_group is not set (OK)
    from_location is not set (OK)
    tmp_netca_file is not set (OK)
    tmp_dbca_file is not set (OK)
    Working in /oracle/stage/102_32/database/SAP ...
    The environment variable ORACLE_HOME is not set! abort ...
    How to set environment variable ORACLE_HOME ?
    Regards
    Eric

    i
    Switch shell to bash:
    orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/bash
    [root@csp-p-sm00 ~]# su - orassm
    [orassm@csp-p-sm00 ~]$
    But when try to run ./RUNINSTALL
    [orassm@csp-p-sm00 SAP]$ ./RUNINSTALLER
    oracle_stage is not set (OK)
    oracle_base is not set (OK)
    oracle_home is not set (OK)
    oracle_sid is not set (OK)
    oracle_home_name is not set (OK)
    oracle_inst_group is not set (OK)
    from_location is not set (OK)
    tmp_netca_file is not set (OK)
    tmp_dbca_file is not set (OK)
    Working in /oracle/stage/102_32/database/SAP ...
    The environment variable ORACLE_HOME is not set! abort ...
    Additionaly I've post csh.cshrc and csh.login
    /etc/cshrc
    csh configuration for all shell invocations.
    by default, we want this to get set.
    Even for non-interactive, non-login shells.
    [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]
    if $status then
            umask 022
    else
            umask 002
    endif
    if ($?prompt) then
      if ($?tcsh) then
        set prompt='[%n@%m %c]$ '
      else
        set prompt=\[`id -nu`@`hostname -s`\]\$\
      endif
    endif
    if ( $?tcsh ) then
            bindkey "^[[3~" delete-char
    endif
    setenv MAIL "/var/spool/mail/$USER"
    limit coredumpsize 0
    if ( -d /etc/profile.d ) then
            set nonomatch
            foreach i ( /etc/profile.d/*.csh )
                    if ( -r $i ) then
                            source $i
                    endif
            end
            unset i nonomatch
    endif
    /etc/csh.login
    System wide environment and startup programs, for login setup
    if ($?PATH) then
            if ( "$" !~ /usr/X11R6/bin ) then
                    setenv PATH "$:/usr/X11R6/bin"
            endif
    else
            if ( $uid == 0 ) then
                    setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
            else
                    setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
            endif
    endif
    setenv HOSTNAME `/bin/hostname`
    set history=1000
    if ( ! -f $HOME/.inputrc ) then
            setenv INPUTRC /etc/inputrc
    endif
    Regards
    Eric

  • How to set public even show detail to to all users

    How to set public even to show detail to all users or group. By default the public event only show "Busy" on calendar.

    Change the calendar's "everybody" permissions to include "Read" permisssion

  • How can I deploy the setting of clear cache on exit for all users?

    How can I deploy the setting of clear cache on exit for all users?

    Note that Firefox disables the disk cache if you use "Clear history when Firefox closes" to clear the cache (see about:cache), so you can either disable the disk cache via its related pref or set the prefs related to clearing this data,but then other items that have a check-mark by default are cleared as well.
    *browser.cache.disk.enable
    *privacy.clearOnShutdown.cache
    *privacy.sanitize.sanitizeOnShutdown
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    These functions can be used in the mozilla.cfg file:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    See also:
    *http://kb.mozillazine.org/Locking_preferences
    *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
    *http://mike.kaply.com/2014/01/08/can-firefox-do-this/

  • How to set environment variables using java program

    Hi all
    I want to set environment variables on windows 98/200/xp system, such as path and classpath using a java program.
    How to do this using a java program.
    Any body plz helppppppppp.

    #1 05-02-2003, 07:38 AM
    Goodz13 Join Date: Jan 2002, Posts: 985
    Location: Halifax, NS, Canada
    Reputation:
    Java FAQ's and tutorials
    Java FAQ's
    Path and ClassPath:
    PATH
    In Windows 9x you would set it up in the autoexec.bat file
    ie.
    SET PATH=%PATH%;c:\jdk1.4.2\bin\;
    where c:\jdk1.4.2\ is the path where you installed Java.
    In Windows 2000 and XP
    Right click on My Computer->Properties->Advanced Tab->Environment Variables... Button.
    If you see a PATH in System Variables, click that and edit it. If you don't, you will need to create a new System variable.
    It should look something like this:
    %SystemRoot%\system32;%SystemRoot%;c:\jdk1.4.2\bin\;
    Any querry email me to [email protected]
    Answer by
    Rajasekhar Goli
    DS UNICS Infotech

  • How to set environment variables permanetly?

    I have installed oracle apps R12 on Oracle Enterprise Linux 5.3 successfully. When i run the file APPS<context_name>.env as oracle user(the one who installed software), the variables are set,,,but when i logout and login again,,,,,i dont see $ORACLE_HOME, $APPL_TOP etc......so please can someone tell me how to set the variables permanently..
    thanks

    Hi,
    set the env file in profile of unix user.
    if your shell is bash shell, then edit the user .bash_profile with env file. If your's is bourn shell, edit the user .profile
    for example,
    i have PROD as the database SID
    /oraprod and /applprod are the base mount points of database and application tiers respectively.
    erpserver is the hostname of R12 (single node)
    (1) Database Tier:
    login as oracle user
    $vi .bash_profile
    . /oraprod/db/tech_st/10.2.0/PROD_erpserver.env
    save the file
    (2) Application Tier:
    login as applmgr user
    $vi .bash_profile
    . /applprod/apps/apps_st/appl/APPSPROD_erpserver.env
    save the file
    ------

  • How to set Environment variables........???

    I installed j2sdk in my system.....
    i want to know how to set env variables...?

    Which ones, what for? Did you check whether some are already set?
    Forget about the classpath variable, if you want to add that. Use the command-line arguments.
    And which OS?

  • How to set up 2 separate iPhoto libraries for two users

    My wife and I have a macbook air, she being one user and me the other. We both have iphones and recently upgraded to the 5s. She had not ever openned itunes or iphoto on the computer as she used the it mainly for word processing, email and surfing the web. I, on the other hand, would play around in iphoto and ensure photo streaming was working and have a large itunes music collection.
    When I openned up her iphoto, all my photos from my account downloaded into hers. I forget what I did to make this happen but it might have done so automatically.
    My question is: how can I set up her own iphoto account when she is logged into her user account on the computer? We don't wish to share iphoto libraries as now is the case.
    And, this might not be the correct forum to bring this up, but when I take pictures on my iphone 5s, they stream to her iphoto library as well as mine. But, her pictures taken on her iphone don't stream/backup to either of our computer iphoto libraries even though she has an icloud account and photo streaming turned on on her phone. 
    I hope this makes sense as there are really 2 questions: setting up a separate iphoto library for each user on one computer, and, how to get photo streaming from her phone to her library
    Thanks in advance for any help

    First you both have to have your own user accounts on the MBA and separate iCloud accounts.  From there it's relatively simple to create you own libraries and have your respective iPhones link to those library when both devices are logged into the same iCloud account.
    OT

  • How to set an screen variant as default for my user?

    Hello,
    For example in t-code FB50 we have 4 screen variants.  The default screen variant is 1.  How can I change the default sreen variant for my user only ?
    Thanks,
    Alexandre

    Hi
    Use T.code FB00 and in the document entry tab in screen templates and line layout variant for doc entry enter necassary details
    For further details, the following link may be useful:
    http://www.r3.duke.edu/stepbystep/journal/3.pdf
    Regards
    Aravind
    Assign points if useful

  • How can I disable javascript in Firefox 30 for all users on my Solaris 10 x86 box?

    I have a Solaris 10 box in a secure environment (no Internet) with Firefox 30 installed. I need to lock javascript in a disabled state for all users. I realize each individual user can toggle javascript with about:config, but that is only a per/user activity. I want to set the value of javascript.enabled to false for all users. Additionally, no user should be able to modify this setting.
    Is there a location with a config or prefs file that will affect all users?

    Try: http://kb.mozillazine.org/Locking_preferences

  • Want to set Reader option in Internet Preferences for all users that login to the workstation

    How can I do this? Is there a config file to edit or a policy object to maintain the perferences settings for all users.  Right now this has to be set manually for each users that would use the system.  Thank you!

    Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
    This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
    http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

  • Setting visible lines and blank rows for all users

    At Item Level for Shopping Cart, Confirmation and Invoice Creation there are settings for Number of Visible Rows and Number of Blank Lines (In Settings/Advanced Settings).
    How can this be changed for all users?

    Hi
    This is a user specific settings to be performed. in SRM 7.0
    Please prepare a document and educate the user to do. This is  the best solution
    Second Solution
    In Setting tabs there are two tabs -Basic Setting and Advance Setting
    check the webdynpro components and hide this for all users
    Regards
    G.Ganesh Kumar

Maybe you are looking for

  • Eclipse loses installed software after update. How to manage?

    Whenever eclipse gets updated with `pacman -Syu` I lose all my installed software. As you can imagine, this is really annoying because when I start eclipse there are zombie buttons in the UI that no longer do anything because those plugins aren't ins

  • Hyper-V convert to direct disk

    My 2012 R2 Server is running on 5 RAID6 HDDs + 1 spare (WD REDs). It's used as a storage server, with two Windows 8.1 Pro Hyper-V clients. The problem is that the disk access in general is kind of slow. So my idea is to move the windows to RAID1 SSD,

  • Crawl KM repository without TREX

    I want to build a plug in that will crawl the KM repository without using TREX. How do I connect to the KM repository from my external application .Can this plug in be installed on a different server.

  • Use of Adobe AIR 2

    hi, after insatlling adobe air sdk 2.6, adobe air 2.6 for android, i 'm getting new option in flash cs5, which is Adobe AIR 2. so my question is should i use this to develop applications for android. Becauz adobe air 2 will create an .air application

  • HT1222 I clicked on more details iphone 6.1.3 and got this ridiculous long  list of of unrelated updates that finally answers nothing about provements

    Why doesn't apple send you to the actual info on the update they want you to install. (6.1.3) It treats you like an idiot - someone who shouldn't question what they're doing. BTW, their spellcheck just prioritized "doping" as a replacement for "doing