UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello there,and Merry Christmas.
I have a serious problem with java and i can't run my gameserver.
my java version is this
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
And when i am trying to run my gameserver scripts i get this error.
root:~# /home/l2jserver/login # ./L2JConfig.sh
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:431)
at java.awt.Frame.<init>(Frame.java:403)
at java.awt.Frame.<init>(Frame.java:368)
at javax.swing.JFrame.<init>(JFrame.java:163)
at net.sf.l2j.configurator.ConfigUserInterface.<init>(ConfigUserInterface.java:120)
at net.sf.l2j.configurator.ConfigUserInterface$1.run(ConfigUserInterface.java:112)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
This is not my desktop computer but my remote server.
I would be really gratefull if someone can help me to resolve this issue.Thank you and again Merry Christmas
But it is still not working,now it gives me this message
root:~# /home/l2jserver/login # ./L2JConfig.sh
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 net.sf.l2j.configurator.ConfigUserInterface.main(ConfigUserInterface.java:93)
You did not mention that you are doing this on a remote host and need to ssh into that host. (that info was removed from the previous post while I was replying......)
Ssh X forwarding is what you need, take a look at these 2 sites for an explanation and how to set it up:
Do use the xclock example mentioned in both articles first. If that works go back to your script and see if that works.
Hope this helps.
PS: I do assume this is linux <-> linux and _not_ windows <-> linux.
If the latter is the case: You need an X Server for windows as well (I don't have too much experience with that, but XMing comes to mind).
Yes,i am using Windows xp and connecting to my ubuntu machine using putty shh client,i guess i will have to install that XMing thing you gave me link to my win xp computer.
ssh2 just tells you that protocol version 2 is used (version 2 is preferred to version 1). Take a look at your /etc/ssh/sshd_config, there will be an entry like this: Protocol 2 (use version 2 only) or Protocol 2,1 (use version 2 and fall back to version 1 if version 2 is not supported).
Hope this clears things up.
BTW: ./configure is only needed if you want to install ssh from source (which you don't want to do, it is already installed and X forwarding is probably compiled in already). You need to look at the sshd_config file options.
You did tell that you have a windows <-> linux setup, then why bother with the first 2 links I gave in post #4 (both are linux <-> linux solutions)? You should focus on a windows <-> linux solution (XMing being one of those, as stated earlier).
Here's a Document (pdf) that explains xming (general explanation and install).
If you do want a linux <-> linux solution: Follow the rest of the link(s) I gave. The ssh protocol version is not the important part, the rest is.
I am just trying to undertstad all this guides,but nothing works for me ,i don;t know how to use XMing nor what command to put in putty to fix the problem,i am very confused.Anyways Drruna thank you for your help,it's my fault that i can't make it work.
I would suggest to start again and only focus on the link I gave in post #10. It is Ubuntu specific (which I assume you use, you did post in LQ's Ubuntu forum) and a lot of people found it a good guide.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.