© Kishori Sharan 2018
Kishori SharanJava APIs, Extensions and Librarieshttps://doi.org/10.1007/978-1-4842-3546-1_10

10. Process API

Kishori Sharan1 
(1)
Montgomery, Alabama, USA
 
In this chapter, you will learn:
  • What the Process API is

  • How to interact with the current process running the Java application

  • How to create a native process

  • How to get information about a new process

  • How to get information about the current process

  • How to get information about all system processes

  • How to set permissions to create, query, and manage native processes

All example programs in this chapter are members of a jdojo.process module, as declared in Listing 10-1.

// module-info.java
module jdojo.process {
    exports com.jdojo.process;
}
Listing 10-1.

The Declaration of a jdojo.process ...

Get Java APIs, Extensions and Libraries: With JavaFX, JDBC, jmod, jlink, Networking, and the Process API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.