softgoki.blogg.se

Setting environment variables for java in mac
Setting environment variables for java in mac




setting environment variables for java in mac

3:Īlternatively, you can also add the following command to your.

setting environment variables for java in mac

Save document in TextEdit and you are done. Then open -a TextEdit.app ~/.bash_profileĪdd export TOMCAT_HOME=/Library/Tomcat/Home First create a ~/.bash_profile from terminal: touch ~/.bash_profile export MULE_HOME=/opt/mule-standalone-3.4.0ĮDIT: It seems opinion is that you should set environment variables in your ~/.bash_profile script, and not ~/.bashrc script.

setting environment variables for java in mac

In your case /opt/mule-standalone-3.4.0 is not an executable, hence the error you are getting. 1:ĭrop the $(.) bit, which would attempt to execute the command within the brackets and set $MULE_HOME to whatever it produces. What am I doing wrong here that is causing the variable to only be set temporarily? Thanks in advance. In order to get around this I’m currently having to type export MULE_HOME=/opt/mule-standalone-3.4.0 every time I start a new Terminal session which, whilst not strenuous, is a little inconvenient. JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin TMPDIR=/var/folders/fc/68bqp4jj411gynj5qvwhq6z1shs1fy/T/Īpple_PubSub_Socket_Render=/tmp/launch-xKtkql/Render However, when I start Terminal I get the following line (not sure if this is normal behaviour?): -bash: /opt/mule-standalone-3.4.0: is a directoryĪnd running a simple env command returns the following: TERM_PROGRAM=Apple_Terminal I have the following line in my bash profile:Įxport MULE_HOME=$(/opt/mule-standalone-3.4.0) The variable I’m trying to set is MULE_HOME. profile, however neither of these options seem to work as permanent solutions – only temporary.

Setting environment variables for java in mac mac os x#

one that does not need exporting every time I start a new Terminal session) in Mac OS X 10.9? I’ve found a number of answers about modifying my. How do I set a permanent environment variable (i.e.






Setting environment variables for java in mac