Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am in the middle of a task. I want to get the names of the current running application names[which is the same as there in "Applications" tab in the Task Manager] in Windows. I want the code in java. Can anyone please help me ?
Posted

1 solution

I am not sure that Java has a class that will do this for you so you would need to try one of three options:

1. Use the Windows tasklist program to get the list and pipe its output into your Java app.

2. Use the Java Native Access[^] library to interface to the Windows EnumProcesses[^] function to get the details.

3. Write a C++ library to get the details you want (from EnumProcesses) and access it via JNI.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900