banner



How To Locate Java On Windows

Introduction

Java runs many of the applications that nosotros use daily. Many applications cannot run on older versions of Java. Hence, it is essential to know which version is installed on your system.

In this tutorial, learn how to check the Java version on your Mac or Windows system.

How to Check if Java is Installed and version on mac or windows

Prerequisites

  • A system running macOS or Windows
  • Access to the command-line/concluding window
  • A version of Java installed

Check Java Version on Mac

You can find the version of Java on macOS by:

  • using the GUI (Mac's System Preferences)
  • prompting for the version in the terminal window

Choice one: Cheque Java Version on Mac Using the GUI

To check the Java version on Mac without using the terminal by searching for the Java Command Console in the System Preferences.

ane. Click the Apple icon in the menu bar to open up the drop-down menu and navigate to System Preferences.

Finding system preferences on Mac

ii. A new window opens with diverse icons and settings. Find and click the Java icon to open up the Coffee Control Panel.

Opening the Java control panel on Mac os

3. Once the Java Control Panel opens, click the About push. A new window with Java version information should appear.

Finding the Java version on macOS from the system preferences

Choice 2: Cheque Java Version on Mac Using the Terminal

If you prefer using the final, checking the Coffee version is a simple ane-command procedure.

i. Outset, open the terminal. To do so, click the Spotlight Search push in the meridian-right of the screen.

Mac spotlight search button.

2. Type terminal in the search bar and open it by clicking on the icon in the search results.

Open terminal on Mac.

3. Once in the command line, run the command: java -version . The output should display the Coffee version installed on your MacOS.

java version 1.8.0_261 installed on macOS

To bank check the version of the primary Java compiler – javac (pronounced "java-see") utilize the command:

          javac -version        

Bank check Java Version on Windows

To check the Java version on a Windows estimator, y'all tin utilise:

  • the GUI (Windows Command Console)
  • the control line

Option i: Check Java Version on Windows Using GUI

To observe the Java version on your Windows without opening a terminal window, use the Control Panel.

1. Open up the Windows menu in the bottom-left corner and blazon control panel in the search bar.

Searching for the control panel in the Windows start menu.

2. Find the Control Panel in the search results and click the icon to open it.

Opening the control panel on Windows

3. Move to the Programs directory.

screenshot of the Open programs directory in Windows

4. Find and click the Java icon to open the Java Control Panel.

example of opening the Java Control Panel

5. Once the control console opens, click the About push.

Viewing information about the Java control panel

vi. The Most Coffee window should announced and display the Java version on your calculator.

example output of java version 8 update 261 installed on windows

Choice 2: Cheque Coffee Version on Windows Using Control Line

Another option to find the Java version on Windows is through the control line.

one. Open up the Windows Start bill of fare in the bottom-left corner and type cmd in the search bar.

Search for command prompt on Windows

2. Then, open the Command Promptonce it appears in the search results.

Open command prompt on Windows

3. A new window with the command prompt should appear. In information technology, type the command java -version and hit Enter. The output should brandish the Java version installed on your Windows system.

java version 1.8.0_261 installed on windows

Y'all tin too check the version of the Coffee'south primary compiler, javac, with the command:

          javac -version        

Decision

This article showed you how to cheque the version of Java installed on a macOS or Windows system.

Was this article helpful?

Aye No

Source: https://phoenixnap.com/kb/check-java-version-on-mac-windows

Posted by: gardnercrishere70.blogspot.com

0 Response to "How To Locate Java On Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel