Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize class sun.awt.X11GraphicsEnvironment #33

Closed
GoogleCodeExporter opened this issue Jun 28, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

Hi,

Please find below what I get when running ganttproject.sh on Ubuntu.
I'm not at all familiar with Java so I'm totally lost :-(

Versions:
* ganttproject-2.0.9
* java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6.4) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Server VM (build 1.6.0_0-b12, mixed mode)
* JAVA_HOME=/usr/lib/jvm/java-6-sun


01-mai-2009 13:41:38 org.bardsoftware.impl.eclipsito.BootImpl run
INFO: Eclipsito platform is running.
[DescriptorParser] parse(): plugin descriptor
url=file:/usr/local/ganttproject-2.0.9/plugins/net.sourceforge.ganttproject_2.0.
0/plugin.xml
[DescriptorParser] parse(): plugin descriptor
url=file:/usr/local/ganttproject-2.0.9/plugins/org.ganttproject.chart.pert_2.0.0
/plugin.xml
[DescriptorParser] parse(): plugin descriptor
url=file:/usr/local/ganttproject-2.0.9/plugins/org.ganttproject.impex.htmlpdf_2.
0.0/plugin.xml
[DescriptorParser] parse(): plugin descriptor
url=file:/usr/local/ganttproject-2.0.9/plugins/org.ganttproject.impex.msproject_
2.0.0/plugin.xml
No protocol specified
01-mai-2009 13:41:40 org.bardsoftware.impl.eclipsito.BootImpl$1
uncaughtException
ATTENTION: [uncaughtException]java.lang.NoClassDefFoundError: Could not
initialize class sun.awt.X11GraphicsEnvironment
java.lang.NoClassDefFoundError: Could not initialize class
sun.awt.X11GraphicsEnvironment
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.jav
a:68)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at java.awt.Toolkit$2.run(Toolkit.java:834)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
    at
sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:126)
    at
javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.j
ava:1556)
    at
javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)
    at
javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:541)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)
    at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1343)
    at javax.swing.UIManager.initialize(UIManager.java:1432)
    at javax.swing.UIManager.maybeInitialize(UIManager.java:1420)
    at javax.swing.UIManager.getDefaults(UIManager.java:660)
    at javax.swing.UIManager.put(UIManager.java:989)
    at
net.sourceforge.ganttproject.language.GanttLanguage.setLocale(GanttLanguage.java
:113)
    at
net.sourceforge.ganttproject.language.GanttLanguage.<init>(GanttLanguage.java:93
)
    at
net.sourceforge.ganttproject.language.GanttLanguage.getInstance(GanttLanguage.ja
va:65)
    at org.ganttproject.impex.msproject.LocaleOption.<init>(LocaleOption.java:22)
    at
org.ganttproject.impex.msproject.ExporterToMsProjectFile.<init>(ExporterToMsProj
ectFile.java:40)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at
org.bardsoftware.impl.eclipsito.ExtensionImpl$ConfigurationElementImpl.createExe
cutableExtension(ExtensionImpl.java:99)
    at
net.sourceforge.ganttproject.plugins.PluginManager.getExtensions(PluginManager.j
ava:45)
    at
net.sourceforge.ganttproject.plugins.PluginManager.getExporters(PluginManager.ja
va:68)
    at
net.sourceforge.ganttproject.export.CommandLineExportApplication.<init>(CommandL
ineExportApplication.java:23)
    at net.sourceforge.ganttproject.GanttProject.main(GanttProject.java:2176)
    at
net.sourceforge.ganttproject.application.MainApplication.run(MainApplication.jav
a:36)
    at
org.bardsoftware.impl.eclipsito.ApplicationLauncher.launchApplication(Applicatio
nLauncher.java:29)
    at org.bardsoftware.impl.eclipsito.BootImpl$2.run(BootImpl.java:53)
01-mai-2009 13:41:40 org.bardsoftware.impl.eclipsito.BootImpl shutdown
INFO: Eclipsito platform is shut down.


Thanks in advance for your help,
Pascal

Original issue reported on code.google.com by ppolleunus on 1 May 2009 at 11:49

@GoogleCodeExporter
Copy link
Author

I think you run it without X session, that is, from the login console or from
SSH/telnet session. Don't do it. GP can't live without X session.

Original comment by dbarashev on 15 May 2009 at 9:36

@GoogleCodeExporter
Copy link
Author

Original comment by dbarashev on 19 Jun 2009 at 8:24

  • Changed state: Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant