The problem is that Desktop.browse is notoriously unreliable and non-portable.
On Unix systems, the correct solution is to spawn a process, xdg-open http://localhost:58881, but for some reason nobody has ever bothered to patch that into Java itself.
At the very least, pop up a window to display the warning so we at least know, when not running from a terminal.
In https://github.com/robertjanetzko/LegendsBrowser/blob/master/src/main/java/legends/Application.java
function
initWebServer
swallowsUnsupportedOperationException
from:The problem is that
Desktop.browse
is notoriously unreliable and non-portable.On Unix systems, the correct solution is to spawn a process,
xdg-open http://localhost:58881
, but for some reason nobody has ever bothered to patch that into Java itself.At the very least, pop up a window to display the warning so we at least know, when not running from a terminal.