OS X install java development environment
I recently bought an i mac and I like it very much. In addition to entertainment, I still want to write code, so I decided to install the development environment. Osx is essentially a Unix system. Since I am familiar with linux, it is quick to install and get started.
The first is to install our great god java, the installation here and the installation type of Linux. After downloading its dmg file, run it directly. If the operation fails, then it may be that your Mac is restricted and needs to be released in the system preferences and security. Permissions, Apple does this well. First install Dashen java, the configuration is similar to linux, roughly as follows:
2imac configure environment variables method
1 enter root mode, use sudo su - enter
2 vim /etc /profile
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home /"
CLASS_PATH="$JAVA_HOME/lib"
PATH=".;$PATH:$JAVA_HOME/bin"
3 wq!
5 java -version | echo $JAVA_HOME Check the installation configuration
To configure maven, first download the compressed package, unzip it, and after the configuration is complete
export M2_HOME=/Users/chenhua/Downloads/apache-maven-3.3.9
export PATH=$PATH:$M2_HOME/bin
iMac:~ chenhua$
Configure git, first install the git client, you can also install it through xcode, generate sshkey after completion, and generate the main command,
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/chenhua/.ssh/id_rsa): chenhva
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in chenhva.
Your public key has been saved in chenhva.pub.
The key fingerprint is:
SHA256:RAw3vj+89bQSMxBTmiQSoM/7NB33JilqX23ceYWv/Us [email protected]
The key's randomart image is:
+---[RSA 2048]----+
| ..++= ... |
| . =.+oo |
| . o oo |
| o . .. . |
Then copy the contents of the pub file and add it to the ssh key of gitlab/hub
The development tool eclipse, the idea is downloaded and installed directly, and finally the database client selects mysql's own workbench.