Setting Java_home On Mac For Every Session

09.12.2018
Setting java_home on mac osx

I have always difficulties setting the Environment variables in OS X like JAVA_HOME, M2_HOME or PATH. How to set these on OS X Mavericks? I did some research but the answers I've found didn't really help me yet: • export JAVA_HOME=/. (But it seems that the changes are temporary, just for one terminal session.) • setenv JAVA_HOME=/. (But command not found.) • Open.profile and write the variables inside to make the changes permanent- (.profile does not exist). • Open.bash_profile and write the variables inside to make the changes permanent- (.bash_profile does not exist).

• vi ~/.bash_profile (Quite a challenge for somebody who doesn't know vi.) • Creating your own enrivonment.plist file. Can somebody please walk me through the steps to get that to work on OS X Mavericks, assuming no Unix knowhow? I have a.profile in my home directory; it contains many export statements for environment variables. You can create such a file by opening a Terminal and issuing the command touch.profile Close Terminal. Then you should open that file in a plain-text editor (TextWrangler for example).

Word for mac 2011 macros. Macros for Word for Mac 2011 I have recently changed to Mac from PC. I want to write a Macro in Word 2011 for Mac to insert my signature into a document. I used the Macro Tool and perform this. But it will not run the macro. Forget macros if you're not familiar with them. (If you still want to try it, get rid of the second. Create, run, edit, or delete a macro. Excel 2016 for Mac Word 2016 for Mac Word for Mac 2011 Excel for Mac 2011 PowerPoint for Mac 2011 More. To save time on tasks you do often, you can record the steps of those tasks as a macro. Then, when you want to perform one of those recorded tasks, you can activate the macro to perform the steps.

Java_home

Trying to run a Java application on your Mac and need to set your JAVA_HOME? Follow the instructions below to quickly and easily do it: Open Terminal Confirm you have JDK by typing “which java”. How to set JAVA_HOME on Mac OS X. Note that this sets JAVA_HOME only for this session. If you want it to persist, you will have to add the. Set environment variables on Mac OS X Lion. Export JAVA_HOME=/Library/Java/Home export JRE_HOME=/Library/Java/Home etc. But, setting the PATH here is completely unnecessary given the other two options, although this is the place where other global environment variables can be set for all users.

You can also use nano.profile in a Terminal window (current directory should be your home), which is much easier than vi. Insert lines such as export JAVA_HOME=. Save, exit nano if you used that and quit a running Terminal. Open Terminal and issue the command env to see all environment variables. Check that the ones you defined have the value you assigned to them. You should be good to go now. But don't forget that environment variables defined in.profile are not passed to GUI applications.

OSX has had only one change re environment variables and that was in Lion where ~/.MacOSX/environment.plist was removed. Although there also has been a change in the default shell in 10.2 or 10.3 from tsch to bash. You need to define what you want the enviroment variable set for and what environment you have. Adobe trial for mac. You also need to understand shells and Unix which by your comments you have not fully done. There are several nbash tutorials around. As to your points • You understand correctly assuming you are in a sh type shell (e.g.

Bash or zsh) • This is for C shells e.g. Tcsh so won't work on recent defaults. • You need to create.profile then it works • It is.bash_profile or better.bashrc and you need to create the file first • Totally correct:) Use TextEdit or nano (or emacs) • Correct up to OSX 10.7 and the wy to do this for programs called from the Workspace e.g. From Dock or Finder (or open) So 3 or 4 work if you are calling the program from the command line (or from a program started in the command line but not by open) As for programs from the GUI see this As for internet is full of rubbish - you need to have enough background to understand an article because as you have discovered many assume things or are incorrect.

StackExhnage sites should be better as you can see if an answer has been agreed to from the number of votes.