According to the new privacy feature of MacOS Mojave 10.14 that needs to confirm permission to use microphone on apps, My Java app (runnable jar) is not recording sound at all when it is running not from a Terminal or Eclipse.
How can I add/request microphone permission directly from the java app?
Runs on Java 8 update 221.