by admin

Verificar Versao Java Cmd

If you are unsure if you have a Java Virtual Machine installed on your computer, open a command prompt and run java -version. Something like this should come out: java version '1.6.025' Java(TM) SE Runtime Environment (build 1.6.025-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) How to build. You need Apache Maven.

Windows has command line utilities that show us the version of the Windows OS running on the computer, including the service pack number. There are multiple CMD commands that help with finding this, you can pick the one that suits your need. Ver command can show you the OS version whereas Systeminfo command can additionally give you service pack, OS edition and build number etc. Find OS Version and Service Pack number from CMDAs you can see above, ver command shows only OS version but not the service pack number.

We can find service pack number as well with command. Systeminfo dumps lot of other information too, which we can filter out using command. Systeminfo findstr /B /C:'OS Name' /C:'OS Version'Examples. C:systeminfo findstr /B /C:'OS Name' /C:'OS Version'Microsoft Windows XP ProfessionalOS Version: 5.1.2600 Service Pack 2 Build 2600This command works on XP, Vista and Windows 7 and on Server editions also. Find below example for Win7. Systeminfo findstr /B /C:'OS Name' /C:'OS Version'OS Name: Microsoft Windows 7 UltimateOS Version: 6.1.7600 N/A Build 7600In case of Windows 7 SP1, the output would be slightly different as below.

Verificar Versao Java Cmd

C:systeminfo findstr /B /C:'OS Name' /C:'OS Version'OS Name: Microsoft Windows 7 EnterpriseOS Version: 6.1.7601 Service Pack 1 Build 7601If you want to print more details, then you can use just ‘OS’ in the findstr search pattern. See example below for Server 2008. C:systeminfo findstr /C:'OS'OS Name: Microsoft Windows Server 2008 R2 EnterpriseOS Version: 6.1.7600 N/A Build 7600OS Manufacturer: Microsoft CorporationOS Configuration: Standalone ServerOS Build Type: Multiprocessor FreeBIOS Version: IBM -BWE117AUS-1.05-, 7/28/2005 Check Windows version using WMIC commandRun the below WMIC command to get OS version and the service pack number.

Verificar

Verificar Version Java Cmd

Wmic os get Caption,CSDVersion /valueExample on Windows 7: c:wmic os get Caption,CSDVersion /valueCaption=Microsoft Windows 7 EnterpriseCSDVersion=Service Pack 1If you want to find just the OS version, you can use ver command. Open command window and execute ver command. But note that this does not show service pack version. C:verMicrosoft Windows XP Version 5.1.2600C:This command does not show version on a Windows 7 system.Also Read.