Find Process ID in Windows using Java

Find Process ID in Windows using Java:

A small program to find the Process ID in windows operating system. This will vary for all execution.


import java.lang.management.ManagementFactory;

public class ApplicationPID {

public static void main(String [] args){
String name = ManagementFactory.getRuntimeMXBean().getName();
System.out.println("Process ID for this app = " + name);
}
}

0

About the author

Bhabani(http://dwteam.in) - Bhabani has 10 years of experience in Data warehousing and Analytics projects that has span across multiple domains like call centre, banking financial, betting and gaming industries Solution areas he focuses on designing the data warehouse and integrating it with Cloud vendors like AWS or GCP. He has rich expertise on Oracle Data Integrator, Talend Open Studio for Big data, Pervasive Data Integrator and in reporting tool such as Qlikview and OBIEE. He has excellent knowledge of Redshift, Big Query, Python, Apache Airflow, Kafka for ETL pipe lines and Hadoop Ecosystems that includes HDFS, Map Reduce ,HIVE, SQOOP, Drill, Impala in Amazon and Google Cloud.

Similar Posts

Leave a reply

required*

Are you a human? *