Get MS-Windows Installed Applications from Java

后端 未结 3 1298
孤城傲影
孤城傲影 2021-01-20 06:33

Is it possible to get a list of installed applications (like the list from the un-install programs) from a windows vista computer with java?

3条回答
  •  借酒劲吻你
    2021-01-20 06:40

    If you mean installed applications I don't think it's possible by directly using Java SDK (also because it's not a cross platform requirement).. what I think you can do is to use an external native API to interact with windows registry (like jRegistryKey) and retrieve the information you need..

    Instead if you want to get all the running applications from a Java program you could parse tasklist.exe output as explained here.

提交回复
热议问题