I am trying to run Jasper iReport on Ubuntu 10.04 and getting java.awt.HeadlessException
:
Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
at java.awt.Window.<init>(Window.java:437)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.SwingUtilities$Shared开发者_开发百科OwnerFrame.<init>(SwingUtilities.java:1758)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1835)
at javax.swing.JDialog.<init>(JDialog.java:270)
at javax.swing.JDialog.<init>(JDialog.java:204)
at it.businesslogic.ireport.gui.SplashDialog.<init>(SplashDialog.java:44)
at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:7826)
Please help me overcome this situation.
Install
sudo apt-get install openjdk-6-jdk
or
sudo apt-get install openjdk-7-jdk
accordingly.
The JRE packages seem to have limited graphics included??
精彩评论