I've read that there are only two steps needed to run Weka on linux, that is:
java -jar weka.jar
After running above command I'm getting:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:218)
at weka.gui.LogWindow.<init>(LogWindow.java:252)
at weka.gui.GUIChooser.<clinit>(GUIChooser.java:215)
Does anyone have any clue what might be causing this?
我正在使用oracle的jdk并运行sudo apt-get install openjdk-7-jre
解决了我的问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.