Skip to content

Conversation

shybovycha
Copy link

When the first check for the isClassLoaded(cl, className) fails with an exception, the fallback check (for isClassLoaded(cl, "java.awt.SystemTray")) is ignored and the entire system tray initialization fails.

Splitting the chain of isClassLoaded calls into separate calls, wrapped in separate try..catch blocks allows the intended behaviour to prevail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant