OS X install java development environment

                                             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:

       

wrote
1imac use sudo su - enter root mode
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

  

    

wrote
iMac:~ chenhua$ more .bash_profile
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,

 

   

wrote
iMac:~ chenhua$ ssh-keygen -t rsa -C "[email protected]"
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.

 

 

   

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326366123&siteId=291194637