java installed not fetched in system_profiler command

I am using system_profiler command to check on the installed application list from mac device.

**Terminal command to check installed java version - **

But while running /usr/sbin/system_profiler SPApplicationsDataType -xml , I cant able to find Java as an installed application.

Is this a known issue or do we have any alternative workaround to fetch the same?

java installed not fetched in system_profiler command
 
 
Q