How do I add/request microphone permission to Java app that runs on MacOS Mojave 10.14?
Asked Answered
A

0

8

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.

Adina answered 15/8, 2019 at 12:47 Comment(3)
Hi did you find solution? I am badly stuck on the same problem. I got two systems Mac OS Catalina. Java doesn't ask permission on both systems. However on one system I am able to access Microphone and able to record while on another it is not able to detect sound in mic. Please share if you got solution.Adjust
I updated my Mac OS to Catalina 10.15.2 and my Java version to 8.231 and now when I am running .jar file with request microphone permission the OS ask me about mic permission and "java" added to my microphone "Privacy" in "System Preferences".Adina
I stuck upon this for long time. Finally here is what worked for me: https://mcmap.net/q/1474112/-application-doesn-39-t-ask-for-permission-to-access-microphone-in-macos-10-14-mojaveAdjust

© 2022 - 2024 — McMap. All rights reserved.