Understanding your Java Development Kit (JDK) or Java Runtime Environment (JRE) version is a fundamental step in software development, particularly when working with drone applications, flight simulation software, or any advanced tech that relies on Java. This knowledge ensures compatibility, allows you to leverage the latest features, and helps troubleshoot potential issues. This guide will walk you through the various methods to determine your Java version across different operating systems.
Checking Java Version on Windows
Windows users have several straightforward ways to identify their installed Java version, ranging from command-line interfaces to graphical user interface elements.

Using the Command Prompt
The most universal and reliable method on Windows is to use the Command Prompt. This approach works whether you have a JDK or a JRE installed.
-
Open Command Prompt:
- Press the
Windows key + Rto open the Run dialog box. - Type
cmdand press Enter, or click “OK”.
- Press the
-
Execute the Version Command:
- In the Command Prompt window, type the following command and press Enter:
bash
java -version
- If Java is installed and correctly configured in your system’s PATH environment variable, you will see output similar to this:
java version "11.0.12" 2021-07-20
Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode, sharing)
or
openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment (build 17.0.1+12-LTS)
OpenJDK 64-Bit Server VM (build 17.0.1+12-LTS, mixed mode, sharing)
- The first line typically displays the main version number (e.g., “11.0.12”, “17.0.1”). The subsequent lines provide more detail about the specific build and runtime environment.
- In the Command Prompt window, type the following command and press Enter:
-
Troubleshooting “Java not recognized”:
- If you receive an error message like “
java' is not recognized as an internal or external command, operable program or batch file,” it means that the Java executable is not in your system’s PATH. This usually happens if Java was installed but the PATH variable wasn’t updated, or if Java isn’t installed at all. - To fix this, you’ll need to find your Java installation directory (typically
C:Program FilesJavajdk-X.X.XorC:Program FilesJavajreX.X.X) and add itsbinsubdirectory to your system’s PATH environment variable.
- If you receive an error message like “
Checking the Control Panel
For users who prefer a graphical interface, Windows’ Control Panel offers another way to check for installed Java versions, specifically for the Java Runtime Environment (JRE).
-
Open Control Panel:
- Search for “Control Panel” in the Windows search bar and open it.
-
Navigate to Java:
- Depending on your Control Panel view (Category or Icons), look for “Java” or “Java (32-bit)” and click on it. This will open the Java Control Panel.
-
View Version Information:
- In the Java Control Panel, navigate to the “About” tab.
- You will see a checkbox labeled “Keep the Java Runtime Environment versioning information accessible on the status bar,” and below it, a statement indicating the version of Java. For example, “Version: 8 Update 301” or “Version: 11.0.12”. This method primarily shows the JRE version.
Checking Installed Programs
You can also find out if Java is installed and its version by checking the list of installed applications.
-
Open Settings:
- Click the Start button and then the gear icon to open Settings.
- Alternatively, press
Windows key + I.
-
Go to Apps:
- Click on “Apps” or “Apps & features”.
-
Search for Java:
- In the list of installed applications, type “Java” in the search bar.
- You will see entries for Java Development Kit (JDK) or Java Runtime Environment (JRE) if they are installed, along with their version numbers. For example, “Java 8 Update 301” or “Java SE Development Kit 11.0.12”.
Checking Java Version on macOS
macOS users can leverage the Terminal application for a command-line approach, which is akin to the Windows Command Prompt method.
Using the Terminal
The Terminal provides the most definitive way to check your Java version on macOS.

-
Open Terminal:
- Open Finder.
- Navigate to
Applications > Utilities > Terminal. - Alternatively, press
Command + Space, type “Terminal”, and press Enter.
-
Execute the Version Command:
- In the Terminal window, type the following command and press Enter:
bash
java -version
- If Java is installed and configured, you will see output similar to:
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
or
java version "17.0.1" 2021-10-19
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS, mixed mode)
- The version number will be clearly displayed.
- In the Terminal window, type the following command and press Enter:
-
Checking for JDK vs. JRE:
- To specifically check for the JDK version, use:
bash
javac -version
- This command will only work if you have a JDK installed, as
javacis the Java compiler. The output will typically be just the version number, likejavac 11.0.12.
- To specifically check for the JDK version, use:
-
Troubleshooting:
- If
java -versionorjavac -versionreturns a “command not found” error, it indicates that Java is either not installed or not added to your system’s PATH. You may need to reinstall Java or manually configure your shell’s PATH environment variable. - On macOS, you might have multiple Java installations. The
java -versioncommand will show the version that is currently active in your PATH. To manage multiple versions, tools likejenvare often used.
- If
Checking Java Version on Linux
Linux distributions offer similar command-line methods to determine your Java version, making it a consistent process across different distributions like Ubuntu, Fedora, or Debian.
Using the Terminal
The most common and efficient method on Linux is through the Terminal.
-
Open Terminal:
- Most Linux distributions allow you to open the Terminal by pressing
Ctrl + Alt + T. You can also usually find it in your applications menu under “System Tools” or “Accessories.”
- Most Linux distributions allow you to open the Terminal by pressing
-
Execute the Version Command:
- In the Terminal, type the following command and press Enter:
bash
java -version
- The output will display the installed Java version, for example:
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
or
java version "1.8.0_282"
Java(TM) SE Runtime Environment (build 1.8.0_282-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.282-b08, mixed mode)
- In the Terminal, type the following command and press Enter:
-
Checking for JDK:
- To confirm if a JDK is installed and check its version, use the compiler command:
bash
javac -version
- If
javacis found, it indicates a JDK is installed, and its version will be displayed (e.g.,javac 11.0.11).
- To confirm if a JDK is installed and check its version, use the compiler command:
-
Managing Multiple Java Versions (Advanced):
- Linux systems can easily have multiple Java versions installed simultaneously. The
java -versioncommand shows the currently active version. - To manage which version is active, you might use the
update-alternativescommand on Debian/Ubuntu-based systems:- To list available Java versions:
bash
sudo update-alternatives --config java
- To select a specific version, follow the prompts to enter the number corresponding to your desired Java executable.
- To list available Java versions:
- Similar tools and configurations exist for other Linux distributions. For comprehensive multi-version management, tools like
sdkmanare also popular.
- Linux systems can easily have multiple Java versions installed simultaneously. The
Importance of Knowing Your Java Version
In the realm of technology, especially concerning applications for drones, flight systems, and complex imaging, knowing your Java version is more than just a curiosity; it’s a necessity.
Compatibility and Feature Access
Different Java versions introduce new features, performance improvements, and security enhancements. For instance, newer versions of the Java Development Kit (JDK) might offer features crucial for advanced drone control algorithms, real-time data processing for flight stabilization systems, or optimized handling of large image datasets from gimbal cameras. If your development environment or the software you are using requires a specific Java version, checking yours ensures you can run it without errors. Conversely, if you’re developing software, knowing the target Java version for your deployment ensures it will function correctly on users’ machines.
Security Updates
Java is a primary target for security vulnerabilities. Oracle and the OpenJDK community regularly release security patches and updates. Running an outdated Java version can expose your system and applications to significant risks. Knowing your version allows you to determine if you are running a supported and secure release. For mission-critical applications like autonomous flight systems or secure remote sensing data processing, staying up-to-date with security patches is paramount.
Troubleshooting and Debugging
When encountering errors, the Java version is often a key piece of diagnostic information. Many bugs and inconsistencies are version-specific. Developers or support personnel will frequently ask for your Java version to help diagnose problems. For example, a flight simulation software might behave differently on Java 8 compared to Java 17, and understanding which version is running is the first step in resolving any discrepancies.
![]()
Performance and Optimization
Each major Java release often brings performance optimizations to the Java Virtual Machine (JVM) and the Java standard libraries. For applications that demand high performance, such as real-time video processing from FPV systems or complex trajectory calculations for drone mapping, using a more recent and optimized Java version can lead to noticeable improvements in speed and efficiency.
By mastering the simple techniques to check your Java version, you equip yourself with essential knowledge for navigating the complexities of software development, ensuring your projects related to drones, flight technology, cameras, and innovation run smoothly and securely.
