1 Get Started
After reading lesson 1, you will be able to:
- Install the NetBeans Integrated Development Environment (IDE)
- Configure IDE settings for writing Java programs
- Type in code, compile it, and run it using the IDE
This lesson walks through the process of installing all the parts needed to write code and run your Java programs using the NetBeans IDE on both macOS and Windows. There has been much debate over whether the use of an IDE should be used to teach programming skills. The other option is to use a text editor to type your code, then use a command prompt window to compile and run the code. Personally, I prefer to start with an IDE for a few reasons:
- An IDE helps find syntax errors prior to code execution (avoids frustration)
- New programmers can build confidence in their ability to write code quickly
- Allows new programmers to concentrate on understanding the logic of coding, not the details of the language
- Provides tools to help debug when there are logic problems that are not readily seen in the code
When you first learn to program, using an IDE provides several advantages. For example, when typing your code using an IDE, there is instant feedback regarding syntax errors and even some logic errors, such as trying to use undeclared variables. Java is a strictly-typed programming language; every variable must be defined with a data type and in many cases initialized prior to use. Another nice feature of most IDEs is some form of code completion.