1. 程式人生 > >Setup JAVA development environment on MAC

Setup JAVA development environment on MAC

1. Download JDK  from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2.Config JAVA_HOME in terminal:
V-Mac:~ home$ pwd
/Users/home

V-Mac:~ home$ vim .bash_profile

# Setting PATH for java
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH="${JAVA_HOME}/bin:${PATH}"
export PATH

Source it :

V-Mac:~ home$ source .bash_profile
V-Mac:~home$ echo $PATH
/Library/Frameworks/Python.framework/Versions/3.6/bin:/anaconda/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/anaconda/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

3.Download Eclipse from https://www.eclipse.org/downloads

4.Chines Eclipse plugin(練英語不漢化)

http://www.eclipse.org/babel/downloads.php

Babel Language Pack Update Site for Oxygen
http://download.eclipse.org/technology/babel/update-site/R0.16.0/oxygen/
Zipped p2 repository for Oxygen (131 MB)

On Eclipse-->Help-->Install new software-->add http://download.eclipse.org/technology/babel/update-site/R0.16.0/oxygen/

-->select options-->next

5. 快捷鍵for Eclipse:

https://blog.csdn.net/ybygjy/article/details/40109069

https://www.cnblogs.com/xubaoaichiyu/p/5846142.html

Command+放大

command-縮小

Others: IntelliJ IDEA

right click project name --->explore system可以到project 目錄。

Window-->show view-->task看地標註釋。