<div dir="ltr"><p class="MsoNormal">Hi,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I want to include Java GUI support on my system which has
only wayland backend supported. I tried to include OpenJDK-7-jre package, but
it seems to have X11 dependency.</p>

<p class="MsoNormal">I compiled ‘Openjre-8’ package successfully and included in
my image. But, it can run only Java applications without GUI. When I try to run
any JAVA SWING API based GUI program I get the following error:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><i>Exception in thread "main"
java.awt.HeadlessException                          
</i></p>

<p class="MsoNormal"><i>        at
java.awt.GraphicsEnvironment.checkHeadless(Unknown
Source)           </i></p>

<p class="MsoNormal"><i>        at
java.awt.Window.<init>(Unknown
Source)                              
</i></p>

<p class="MsoNormal"><i>        at
java.awt.Frame.<init>(Unknown
Source)                               
</i></p>

<p class="MsoNormal"><i>        at
java.awt.Frame.<init>(Unknown
Source)                               
</i></p>

<p class="MsoNormal"><i>        at
javax.swing.JFrame.<init>(Unknown
Source)                           
</i></p>

<p class="MsoNormal"><i>        at
GuiApp1.<init>(GuiApp1.java:25)                                     
</i></p>

<p class="MsoNormal"><i>        at
GuiApp1.main(GuiApp1.java:20)  </i></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Can anyone suggest, if it is possible to run Java GUI
programs on wayland?</p></div>