Mac OS X Yosemite was officially released on October 17, 2014.
As a Java developer, early adopters installed the latest version of the first time.
and the previous OS X system is still a lot different. Here's a note on the Java development environment.
1. JDK Installation
By default, the 10.10 system also does not have a JDK installed, nor does it automatically download the JDK to an Apple server.
There are two options, one is to download the latest version of the JDK (1.8.0_25) on the Oracle website, and the other is to download the 10.9 1.6.0_65 version of the JDK, which is officially provided by Apple,
1.6.0_65 version: http://support.apple.com/kb/DL1572
2. mysql Installation
To the website of MySQL download for 10.9 version and above the DMG or tar files, I download the dmg file here, double-click installation, note that during the installation process, you need to change the installation options, the [Startup Item] option is removed, or you will be prompted to install failure, the main reason is " MySQL Start on Restart script fails ".
3. MAVEN Installation
To the Apache official website to download the latest version, unzip to the specified location, I specify here to extract the location of the/usr/local directory;
Edit the ~/.bash_profile file and add the contents to the file:
Export Java_home="/library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home"Export PATH="$JAVA _home/bin: $PATH"Export M2_home="/usr/local/maven"Export M2="$M 2_home/bin"Export PATH="$M 2: $PATH"Export PATH="/usr/local/mysql/bin: $PATH"
After saving, execute
source. bash_profile
You can now run
MVN--version
If the test is successfully installed, the version information of MAVEN will be printed successfully
$ MVN--Versionapache Maven3.2.3(33F8C3E1027C3DDDE99D3CDEBAD2656A31E8FDF4; the- ,-12t04: -:Ten+ ,:xx) Maven Home:/usr/local/Mavenjava Version:1.8. 0_25, Vendor:oracle Corporationjava home:/library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home/Jredefault LOCALE:ZH_CN, platform Encoding:utf-8OS Name:"Mac OS X", Version:"10.10", Arch:"x86_64", Family:"mac"
4. Intellij Idea Installation
If the JDK version installed earlier is 1.6, this may not be a problem;
If you install a JDK version of 1.8, you will need to change it in the following steps:
1, first drag and drop IntelliJ idea into the/applications directory (installation);
2, double-click IntelliJ Idea, run, you will be prompted to run the JRE environment, and prompted to download the Apple official website; Note: I have installed 1.8 here, why also install jdk1.6 it? This is completely unnecessary, how to do? Go down ...
3. Right-click on IntelliJ idea.app, display package contents->contents->info.plist, apply text or default Xcode open, find
< string >1.6*</string>
Change 1.6 to 1.8 to save the exit. Open IntelliJ Idea,ok again, success.
4, open the relevant parameters can be set.
Yosemite installation of JDK, MySQL, maven, idea