我正在使用using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Pesticide.CustomUserControls
{
public partial class ComboxUserControl : ComboBox
{
public ComboxUserControl()
{
InitializeComponent();
}
}
}
,我正在尝试通过在GWT 2.8.2
中调用GWT
的主要内容,以开发模式启动com.google.gwt.dev.DevMode
。
当Linux Server
属性设置为-Djava.awt.headless
时,我收到以下异常:
false
我通过设置Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0 .0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java :65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:7 4)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:81)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:120)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at java.awt.Toolkit$2.run(Toolkit.java:869)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:861)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1256)
at com.google.gwt.dev.SwingUI.invokeAndWait(SwingUI.java:407)
at com.google.gwt.dev.SwingUI.initialize(SwingUI.java:249)
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:783)
解决了第一个问题,但后来我遇到了以下异常:
-Djava.awt.headless=true
我还试图导出DISPLAY变量,但问题仍然存在。