BatchBuilder in Windows - OpenJDK
Adjusting Windows Environment Variables for BatchBuilder and OpenJDK
Getting to Windows Environment Variables
- Open the File Explorer, scroll down until you see "This PC" and right-click on it;
- Select "Properties"
- In the "Settings" window that opens up, type "environment" into the search bar at the top;
- A search result should appear called "Edit the system environment variables";
- Select that and a ‘System Properties’ window should appear
- Click on the ‘Environment Variables…’ buttonÂ
OpenJDK in PATH:
Case 1: OpenJDK is in PATH
- In the System variables section (lower half of the Environment Variables window) select Path and click ‘Edit..’
- Select the line that has the location for OpenJDK on your computer
- E.g. C:\Program Files\OpenJDK\jdk-11.0.16.8-hotspot\bin
- Click on the ‘Move Up’ button until it is the top line
- Click OK
Case 2: OpenJDK is not in PATH
- In the System variables section of the Environment Variables window select Path and click ‘Edit..’
- Click on New button
- Copy directory location of OpenJDK into highlighted area,
- E.g. C:\Program Files\OpenJDK\jdk-11.0.16.8-hotspot\bin
- Select the newly created line that has the location for OpenJDK on your computer
- Click on the ‘Move Up’ button until it is the top line
- Click OK
Last step for either OpenJDK Case
- Click OK to get out of System Properties.
You may need to restart your computer for changes to take effect.