Litarvan / OpenAuth

Java Yggdrasil library.
GNU General Public License v3.0
161 stars 30 forks source link

[BUG] java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel when authenticating with Webview #48

Open pauljako opened 1 month ago

pauljako commented 1 month ago

Describe the bug When I call authenticator.loginWithWebview() I get the following error:

java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
    at fr.litarvan.openauth.microsoft.MicrosoftAuthenticator.loginWithAsyncWebview(MicrosoftAuthenticator.java:154)
    at fr.litarvan.openauth.microsoft.MicrosoftAuthenticator.loginWithWebview(MicrosoftAuthenticator.java:138)
    at de.pauljako.airclient.Account.webLogin(Account.java:60)

To Reproduce Steps to reproduce the behavior:

  1. Make a Simple Code that calls loginWithWebview()
  2. Execute it
  3. See error

Expected behavior WebView should Open

Desktop