Desktop API is not supported on the current platform

后端 未结 4 768
轮回少年
轮回少年 2020-12-01 04:16

I have encountered this error:

java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform

I w

4条回答
  •  一个人的身影
    2020-12-01 04:22

    Support varies between implementations on the various JDKs. I encountered the "UnsupportedOperationException" using OpenJDK 1.7.0. Switching to the Oracle JDK 1.7 worked.

    Where practical, you may be able to switch JDKs or suggest that your users switch JDKs to enable a certain feature.

提交回复
热议问题