Desktop.getDesktop().browse Hangs

前端 未结 3 492
一个人的身影
一个人的身影 2021-01-21 11:07

I\'m working on an application in which if a user clicks on a link, I want it to open in their default browser. From what I\'ve read, this should in theory work, however, when r

3条回答
  •  情歌与酒
    2021-01-21 11:54

    You are not alone. This is a bug that appears to happen in some versions of JDK 1.6 and 1.7. I haven't seen it occuring in JDK 1.8.

    It can occur on Windows too and all you can do is either update the JVM or not use the Desktop class (which sucks).

提交回复
热议问题