设置开发环境
最后更新于:2022-04-01 02:33:42
如果你已经有了 Maven 的开发环境,那你可以跳过本节。
本书例子需要 JDK 和 Apache Maven,都可以免费下载到。
### [](https://github.com/waylau/essential-netty-in-action/blob/master/GETTING%20STARTED/Setting%20up%20the%20development%20environment.md#1安装配置-jdk)1.安装配置 JDK
建议用 JDK 7+
### [](https://github.com/waylau/essential-netty-in-action/blob/master/GETTING%20STARTED/Setting%20up%20the%20development%20environment.md#2下载-ide)2.下载 IDE
JAVA 的 IDE 很多,主流的有
* Eclipse: [http://www.eclipse.org](http://www.eclipse.org/)
* NetBeans: [http://www.netbeans.org](http://www.netbeans.org/)
* Intellij Idea Community Edition: [http://www.jetbrains.com](http://www.jetbrains.com/)
### [](https://github.com/waylau/essential-netty-in-action/blob/master/GETTING%20STARTED/Setting%20up%20the%20development%20environment.md#3下载安装-maven)3.下载安装 Maven
可以参考:[http://www.waylau.com/apache-maven-3-1-0-installation-deployment-and-use/](http://www.waylau.com/apache-maven-3-1-0-installation-deployment-and-use/)
### [](https://github.com/waylau/essential-netty-in-action/blob/master/GETTING%20STARTED/Setting%20up%20the%20development%20environment.md#4配置工具)4.配置工具
确保系统环境变量有 JAVA_HOME 和 M2_HOME