当前位置: 技术问答>linux和unix
在linux下面执行jar包时出错?求解!
来源: 互联网 发布时间:2016-10-04
本文导语: [root@ip-10-205-5-160 install]# java -jar aaa.jar WARNING: could not initialize interface awt java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) at java.awt.Window.(Window.java:318) ...
[root@ip-10-205-5-160 install]# java -jar aaa.jar
WARNING: could not initialize interface awt
java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.(Window.java:318)
at java.awt.Frame.(Frame.java:419)
at java.awt.Frame.(Frame.java:384)
at com.installshield.wizard.awt.AWTWizardUI.initialize(AWTWizardUI.java:515)
at com.installshield.wizard.StandardWizardListener.wizardInitializing(StandardWizardListener.java:20)
at com.installshield.wizard.Wizard$WizardListenerInitializer.run(Wizard.java:1577)
at java.lang.Thread.run(Thread.java:595)
-----------------waiting in waitUniltInitialized ---------------------
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1158)
at com.installshield.wizard.awt.AWTWizardUI.waitUntilInitialized(AWTWizardUI.java:1458)
at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(AWTWizardUI.java:1221)
at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(AWTWizardUI.java:1297)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:75)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1533)
怎么解决?3ks
WARNING: could not initialize interface awt
java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.(Window.java:318)
at java.awt.Frame.(Frame.java:419)
at java.awt.Frame.(Frame.java:384)
at com.installshield.wizard.awt.AWTWizardUI.initialize(AWTWizardUI.java:515)
at com.installshield.wizard.StandardWizardListener.wizardInitializing(StandardWizardListener.java:20)
at com.installshield.wizard.Wizard$WizardListenerInitializer.run(Wizard.java:1577)
at java.lang.Thread.run(Thread.java:595)
-----------------waiting in waitUniltInitialized ---------------------
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1158)
at com.installshield.wizard.awt.AWTWizardUI.waitUntilInitialized(AWTWizardUI.java:1458)
at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(AWTWizardUI.java:1221)
at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(AWTWizardUI.java:1297)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:75)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1533)
怎么解决?3ks
|
不能初始化awt
可能是java版本的问题
可能是java版本的问题
|
http://luoyahu.javaeye.com/blog/485872
看看这个,不知道有没有帮助?
看看这个,不知道有没有帮助?