Environment
First, you'll need to set up an enviroment on your computer that will allow you to run the Java programming language. This training program is intended for students who have the latest Windows 11 operating system on their computers. To install Java: go to www.java.com and click Download to install 64-bit Java for Windows. The Java download installs the Java files to this location on your computer: c:\Program Files\Java\jdk1.8.0_333. To run your Java programs you need to set the system path of your computer to include: c:\Program Files\Java\jdk1.8.0_333\bin.
Follow these steps to add the additional path:
- Hold the Windows logo key on your keyboard down and click the i key.
- Scroll down and click on About.
- Click Advanced system settings.
- Click Environment Variables.
- Under System variables click on Path to highlight the entire path line.
- Click Edit and then New.
- Enter c:\Program Files\Java\jdk1.8.0_333\bin and then click OK.
Second, you will need to create a short cut that will bring up the command prompt window. Click on the search icon at the bottom of your screen, enter command prompt and then click Pin to taskbar. Note: When you get your first Java programming position your company will probably be using an Integrated Development Environment (IDE). To keep things as simple as possible this training program uses the Command prompt window only.
Third, you will need to create a folder on your computer from which you will run your Java programs. I suggest that you consider a name like javamary, javajohn; just something that is easy for you to remember.
Finally, you will need a text editor for typing in your programs. For this training program we will be using Notepad++ which you can download from: https://notepad-plus-plus.org/.