Skip to main content
TopMiniSite

Back to all posts

How to Get the Java Version In Powershell?

Published on
2 min read
How to Get the Java Version In Powershell? image

Best Tools to Find Java Version to Buy in November 2026

1 Introduction to Java Programming and Data Structures, Comprehensive Version [Global Edition]

Introduction to Java Programming and Data Structures, Comprehensive Version [Global Edition]

BUY & SAVE
$83.77 $88.00
Save 5%
Introduction to Java Programming and Data Structures, Comprehensive Version [Global Edition]
2 Introduction to Java Programming, Brief Version

Introduction to Java Programming, Brief Version

BUY & SAVE
$207.17
Introduction to Java Programming, Brief Version
3 Java Programming Language: a QuickStudy Laminated Reference Guide

Java Programming Language: a QuickStudy Laminated Reference Guide

BUY & SAVE
$8.95
Java Programming Language: a QuickStudy Laminated Reference Guide
4 Java for Beginners: Build Your Dream Tech Career with Engaging Lessons and Projects

Java for Beginners: Build Your Dream Tech Career with Engaging Lessons and Projects

BUY & SAVE
$14.32
Java for Beginners: Build Your Dream Tech Career with Engaging Lessons and Projects
5 Thinking in Java

Thinking in Java

BUY & SAVE
$20.57 $74.99
Save 73%
Thinking in Java
6 The Java Language Specification, 3rd Edition

The Java Language Specification, 3rd Edition

BUY & SAVE
$312.51
The Java Language Specification, 3rd Edition
7 Java Made Easy for High School Students: An Easy Step-by-Step Guide for Beginners to Build Coding Skills with Fun Projects and Real-Life Examples (Beginners Computer Language Series)

Java Made Easy for High School Students: An Easy Step-by-Step Guide for Beginners to Build Coding Skills with Fun Projects and Real-Life Examples (Beginners Computer Language Series)

BUY & SAVE
$19.99
Java Made Easy for High School Students: An Easy Step-by-Step Guide for Beginners to Build Coding Skills with Fun Projects and Real-Life Examples (Beginners Computer Language Series)
8 Java Programming Commands Cheat Sheet: Beginner to Advanced Reference Guide for Web Developers

Java Programming Commands Cheat Sheet: Beginner to Advanced Reference Guide for Web Developers

BUY & SAVE
$14.99
Java Programming Commands Cheat Sheet: Beginner to Advanced Reference Guide for Web Developers
9 Java: Learn Java in One Day and Learn It Well. Java for Beginners with Hands-on Project. (Learn Coding Fast with Hands-On Project Book 4)

Java: Learn Java in One Day and Learn It Well. Java for Beginners with Hands-on Project. (Learn Coding Fast with Hands-On Project Book 4)

BUY & SAVE
$3.99
Java: Learn Java in One Day and Learn It Well. Java for Beginners with Hands-on Project. (Learn Coding Fast with Hands-On Project Book 4)
10 Learn Java with Projects: A concise practical guide to learning everything a Java professional really needs to know

Learn Java with Projects: A concise practical guide to learning everything a Java professional really needs to know

BUY & SAVE
$39.99 $49.99
Save 20%
Learn Java with Projects: A concise practical guide to learning everything a Java professional really needs to know
+
ONE MORE?

To get the Java version in PowerShell, you can use the following command:

java -version

This command will display the installed Java version on your system. You can also use the command below to get the Java version information in a more readable format:

(Get-Command java).FileVersionInfo.ProductVersion

Running this command will output the specific version of Java installed on your system.

How to get the Java version using the Get-ItemProperty command in PowerShell?

To get the Java version using the Get-ItemProperty command in PowerShell, you can follow these steps:

  1. Open PowerShell by searching for it in the Start menu and clicking on it.
  2. Type the following command to get the Java version installed on your computer:

Get-ItemProperty "HKLM:\Software\JavaSoft\Java Development Kit\" | Select-Object -ExpandProperty CurrentVersion

This command will retrieve the Java version from the Windows registry and display it in the PowerShell window.

  1. Press Enter to run the command. The Java version installed on your computer will be displayed in the PowerShell window.

Note: This command will only work if Java is installed on your computer and the path to the Java Development Kit registry key is correct. If Java is not installed or the registry key path is different, you may need to modify the command accordingly.

How to get the current Java version in PowerShell script?

You can get the current Java version in a PowerShell script by using the following command:

(Get-Command java).FileVersionInfo.FileVersion

This command will return the current version of Java that is installed on your system.

How to check the Java version in PowerShell?

To check the Java version in PowerShell, you can use the java command with the -version option.

Open PowerShell and type the following command:

java -version

Press Enter, and you should see the Java version information displayed in the output. This will show you the installed Java version on your system.