Java Programming Environment Setup

Note: For a beginner, it can be overwhelming to set up and work with an IDE (Integrated Development Environment, which is a program for coding). You may want to skip this step for now, and instead start programming on an online programming environment, such as w3schools or codewars.


1. Get the JDK (Java Development Kit) on your computer (for Windows 11) -

- Go to jdk.java.net and download the latest OpenJDK version that is ready for use

- Find or create the folder C:/Program Files/Java on your computer

- Unzip the download and put the jdk folder into the Java folder

- Access your computer's environmental variables (in the toolbar, search "Edit the System Environment Variables")

- Click the "Environment Variables" button

- In the System Variables section, create an environmental variable called JAVA_HOME, and set its value to the path of the JDK folder

- Edit the System Variable called "Path", and add %JAVA_HOME% and %JAVA_HOME%\bin as values

- Open the Command Prompt (type "cmd" in the Windows search bar)

- To test it, type "java -version" (without quotes) in Command Prompt. It should show the jdk version

- At this point, java files can be run from the command line. See step 2 below


2. (Optional, if not wanting to use an IDE) Running java files from the Command Prompt (Windows 11) +


3. Set up Eclipse IDE (Windows 11) +


4. Create and run code in Eclipse +


Completed