This is the a complete developer toolset for building apps that run on Apple TV, Apple Watch, iPhone, iPad, and Mac. Open a terminal window and type the following command for example:Īt the next moment you will be asekd to install Xcode. OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"Īn alternative is to use Homebrew and execute the following command: Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jreĭefault locale: en_US, platform encoding: UTF-8 Java version: 1.8.0_65, vendor: Oracle Corporation Vim ~/.bash_profile export M2_HOME=/path/to/mavenĬlose the terminal and open a new one. Then set Maven in the environment variables It is also recommended to create a symbolic link to the Maven home, so that when let’s say you update your Maven version, you’ll only have to change the symbolic link target: zip archive and unpack it in a folder of your choice – I put it under the /opt directory: With the JAVA_HOME environment variable configure, go to the Apache Maven Downloads website, download the. Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home Maven
bash_profileĮxport JAVA_HOME=$(/usr/libexec/java_home)
In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/.bash_profile or ~/.profile $ vim. JAVA_HOME is just a convention, usually used by Tomcat, other Java EE app servers and build tools such as Maven to find where Java lives. You will need to know this when setting up a project in IntelliJ for example. Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/HomeĪdrians-MacBook-Pro:ama ama$ /usr/libexec/java_home -v 1.7 You can find out where the JDK is installed, by executing the /usr/libexec/java_home -v 1.7 , on the terminal command:Īdrians-MacBook-Pro:ama ama$ /usr/libexec/java_home -v 1.8 It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.ĭownload the Mac OS X 圆4. So first things first- installe a Java Development Kit ( JDK), which is a software development environment used for developing Java applications and applets.