官术网_书友最值得收藏!

Getting an IDE

An integrated development environment (IDE) is more than a code editor; it includes the tools for autocompletion, syntax, formatting, and other miscellaneous features, such as search and replace. IDEs have advanced features such as refactoring, building, testing, and running the programs with the help of runtime containers.

The popular IDEs are Eclipse, IntelliJ IDEA, and NetBeans. Of the three, Eclipse is the most popular and open source IDE available for Java. It has a big community and is frequently updated. It has a workspace and an extensible plugin system. The development potential of applications in a whole range of languages is endless. Some other development IDEs based on Eclipse include the following:

  • If you are going to do only Spring development, then the derivative of Eclipse called Spring Tool Suite (STS) is a good option.
  • There are also cloud IDEs such as Eclipse Che, touted as the next-generation Eclipse. It does not need any installation. You develop in a browser that connects to a Che server, which builds a workspace remotely (containing libraries, runtime, and dependencies) in a Docker container. As a result, you can develop from any machine and anyone can contribute to your project, with just a URL. If you think that is cool and have a need for a location- and machine-independent development, give it a spin.

For the purposes of this book, let's stick to the basic and hugely popular Eclipse. The current edition, at the time of writing this book, is Neon. A large community and configurable plugin support makes it the IDE of choice for cloud-based Java development.

Download the latest version from: https://www.eclipse.org/. Assuming you have JDK 8 or later installed, Eclipse should start up fine.

Configure a workspace that will store your project files and settings:

When you hit OK, the Eclipse IDE should open up. Eclipse Neon will automatically get you two important plugins we need for development:

  • Git client: This will allow us to connect to a Git source control repository. This book assumes you use Git due to its popularity and features, but there are many older options in use in enterprises, such as Subversion and Perforce. In case you use the alternatives, download the respective plugin to your IDE by following the developer setup instructions given by your project team or in your team wiki. If these instructions do not exist, ask to build one for new team members to use.
  • Maven support: Maven and Gradle are both great project management and configuration tools. They help with tasks such as getting dependencies, compiling, building, and so on. We chose Maven because of its maturity with the enterprises.

If you are coming across these two for the first time, please get familiar with both by reading up on their respective websites.

主站蜘蛛池模板: 谷城县| 沈阳市| 昌都县| 清水县| 大兴区| 渝北区| 永泰县| 四子王旗| 准格尔旗| 旬阳县| 饶平县| 鹿泉市| 渑池县| 滦平县| 舞阳县| 壤塘县| 玉树县| 新平| 临海市| 海口市| 哈巴河县| 江都市| 太仓市| 乳山市| 常德市| 绥宁县| 高唐县| 麦盖提县| 浙江省| 大庆市| 高碑店市| 道真| 平安县| 大宁县| 三江| 当雄县| 大邑县| 铜陵市| 武清区| 得荣县| 垦利县|