FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour java installed
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
java installed
Posted: Sat Dec 05, 2015 05:23 PM

how to check if java installed on your computer?

thanks

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: java installed
Posted: Mon Dec 07, 2015 04:09 AM
Option 1:-

Running the following command in the command prompt will return the Java Version Installed, If Java is not installed then it would return “Unknown Command” error message.

Code (fw): Select all Collapse
java -version


For eg.
If it is installed then the above command would return

Code (fw): Select all Collapse
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
Java HotSpot(TM) Client VM (build 25.66.-b18, mixed mode, sharing)


You may capture the output programmatically and then decide.

Option 2:-
You can also read the registry value to verify the Java installation

32 bit
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion"

64 bit
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\CurrentVersion"

Regards
Anser
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: java installed
Posted: Mon Dec 07, 2015 10:05 AM

thanks Anser

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion