|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Masasomi in Linux Setup, CentOS, Red Hat Linux
Installing an application that requiresjava GUI. Jave installed correctly but get message Could not initialize class sun.awt.X11GraphicsEnviron
ment using Java jdk1.6.0_14 and then tried 15 without success.
Googled and found System.setProperty("java.a
wt.headles
s", "true");
Command allegedley will solve initial problem but will not execute as syntax error near unexpected token `'java.awt.headless"''.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
|
[root@server77-68-54-129 ~]# cd $COMPIERE_HOME
[root@server77-68-54-129 Compiere2]# ./RUN_setup.sh
Install Compiere Server
===================================
Setup Dialog
===================================
*** 2009-11-03 10:18:57.393 Compiere Log (CLogConsole) ***
10:18:57.393 CLogMgt.setLevel: CONFIG
Exception in thread "main" 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.java: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:128)
at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java: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:542)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:582)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1344)
at javax.swing.UIManager.initialize(UIManager.java:1433)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1421)
at javax.swing.UIManager.getInstalledLookAndFeels(UIManager.java:426)
at javax.swing.UIManager.installLookAndFeel(UIManager.java:465)
at javax.swing.UIManager.installLookAndFeel(UIManager.java:484)
at org.compiere.plaf.CompierePLAF.<clinit>(CompierePLAF.java:308)
at org.compiere.install.Setup.main(Setup.java:253)
*** 2009-11-03 10:19:09.47 Compiere Log (CLogConsole) ***
[root@server77-68-54-129 ~]# System.setProperty ('java.awt.headless"' 'true');
-bash: syntax error near unexpected token `'java.awt.headless"''
|
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625