The modern Java platform includes a public API that enables us to write applications with access to platform-specific desktop features. These features include interacting with taskbars/docks and listening for application and system events.
The macOS X com.apple.eawt package was an internal API and, starting with Java 9, is no longer accessible. In support of Java's embedded platform-specific desktop features, apple.applescript classes have been removed without replacement. They are not available in Java 9, 10, or 11.
The new API has been added to the java.awt.Desktop class and provides the following:
- It creates a public API to replace the functionality in com.apple.{east,eio}.
- It ensures that OS X developers do not lose functionality. To this end, the current Java platform has replacements for the following packages:
- com.apple.eawt
- com...