Export display from one Solaris Server to another
807557Oct 22 2010 — edited Oct 22 2010Hi, I am remotely accessing a Solaris 10 server from another Solaris 10 server using SSH. How can I export the display? In the server I am connecting from I entered the command "xhost +xxx.xxx.xxx.xxx" with the correct IP address of the server I am connecting to. And then I entered "setenv DISPLAY xxx.xxx.xxx.xxx:1.0" with the correct IP address of the server I am connecting from. However I am getting a java error. I have searched forums and it seems that the procedure is the one I used but its not working. I know there is probably a simple thing I am missing - so any ideas? Do the Java versions have to match?
I get the following error when I load an application requiring a GUI:
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.getUI(UIManager.java:1008)
at javax.swing.JOptionPane.updateUI(JOptionPane.java:1859)
at javax.swing.JOptionPane.<init>(JOptionPane.java:1822)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:841)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621)
at se.ericsson.epa.ims.licensing.lmc.LicenseManagementConsole.main(LicenseManagementConsole.java:204)