DISPLAY error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

DISPLAY error

Roshan
Hello Erman,

we are facing some issues when executing DISPLAY from a Linux server to Windows.

[ora12c@RB-BIGD-STRIIM1 ~]$ export DISPLAY=10.15.9.200(Windows IP):0
[ora12c@RB-BIGD-STRIIM1 ~]$ java -jar /home/ora12c/Striim_3.10.1\ \(1\).jar
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2031)
        at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1158)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:431)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1577)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
        at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
        at javax.swing.UIManager.initialize(UIManager.java:1459)
        at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
        at javax.swing.UIManager.getUI(UIManager.java:1006)
        at javax.swing.JOptionPane.updateUI(JOptionPane.java:1882)
        at javax.swing.JOptionPane.<init>(JOptionPane.java:1845)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:857)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:666)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:637)
        at com.izforge.izpack.installer.GUIInstaller.showFatalError(Unknown Source)
        at com.izforge.izpack.installer.GUIInstaller.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at com.izforge.izpack.installer.Installer.main(Unknown Source)

XForwarding is enabled in /etc/ssh/sshd.conf
ping is working fine

Kindly advise.

THanks,

Roshan
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY error

Roshan
[root@RB-BIGD-STRIIM1 roshanbis]# xclock
Error: Can't open display: 10.15.19.212:0
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY error

ErmanArslansOracleBlog
Administrator
In reply to this post by Roshan
How did you enable XForwarding? Which steps or article did you follow?

Why don't you just use VNC yo get display?

Did you check the following article? ->

https://ermanarslan.blogspot.com/2016/12/linux-displaying-x-windows-in-windows.html
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY error

Roshan
Thanks Erman. It is ok now after installing XMING and enabling xforwarding.
Reply | Threaded
Open this post in threaded view
|

Re: DISPLAY error

ErmanArslansOracleBlog
Administrator
Good.