How Do I Check Java Version on Unix?
Contents How Do I Check My Version of Java? Option 2: Check Java Version on Windows Using Command Line Open the Windows Start Menu in the Bottom-Left Corner...
Contents
How do I check my version of Java?
Option 2: Check Java Version on Windows Using Command Line
- Open the Windows Start menu in the bottom-left corner and type cmd in the search bar.
- Then, open the Command Prompt once it appears in the search results.
- A new window with the command prompt should appear. In it, type the command java -version and hit Enter.
24 авг. 2020 г.
Must Read
How do I know if I have JDK or OpenJDK?
You can write a simple bash script to check this out:
- Open any text editor (preferrably vim or emacs).
- create a file named script.sh (or any name with the . …
- paste the following code in it: #!/bin/bash if [[ $(java -version 2>&1) == *”OpenJDK”* ]]; then echo ok; else echo ‘not ok’; fi.
- save and exit the editor.
24 сент. 2016 г.