我刚刚将 Zulu jdk zulu1.7.0_25-7.0.0.0 下载到我的 Azure Windows 2012 VM 中,并尝试从示例目录运行内存监视器示例。我得到了以下异常。任何解决方法?
>C:\Zulu\u25\zulu1.7.0_25-7.0.0.0-win64\bin\java -jar MemoryMonitor.jar
Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:224)
at MemoryMonitor.main(MemoryMonitor.java:480)