I have created a utility that checks for various perquisites/requirements needed for a machine setup. But, I am running into an issue where I want to check if JAB (Java Access Bridge) is enabled or disabled through PowerShell either through a location path of a file or registry entry would be great.
There is this website documentation that references how to use the jabswitch.exe to enable or disable JAB via command line, but as mentioned above, I am wanting to check if enabled/disabled. https://docs.oracle.com/javase/9/access/enable_and_test.htm#JSACC-GUID-7890D37B-16F2-48EC-B45F-2A6CF0613EE5
Is this possible to do (Without taking a screenshot in the Control Panel\Ease of Access\Ease of Access Center)?
CodePudding user response:
If you look at the source code of jabswitch
you find that it does two things:
- it writes a file
%USERPROFILE%\.accessability.properties
which contains two lines starting with#
(if disabled) or not (if enabled) - it updates at the registry key
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Accessibility
the valueConfiguration
which either containsoracle_javaaccessbridge
(if enabled) or doesn't contain it (if disabled)