I have a linux server where I want to run a jar file but when i run this its showing

at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:432)
    at java.awt.Frame.<init>(Frame.java:403)
    at java.awt.Frame.<init>(Frame.java:368)
    at javax.swing.JFrame.<init>(JFrame.java:158)
    at Imagecrop.CropImage.<init>(CropImage.java:21)
    at arrestcentral.ArrestData.<init>(ArrestData.java:34)
    at arrestcentral.ArrestpdfLink.<init>(ArrestpdfLink.java:28)
    at arrestcentral.ArrestpdfLink.main(ArrestpdfLink.java:110)

For this I would like to install

X server

for graphical view.

link|improve this question

20% accept rate
3  
Information like which distro would really help someone answer this question. – Keith Stokes Jun 10 '11 at 2:39
2  
We really need to know what distro you're using. Linux is a kernel, not an Operating System. – Chris S Jun 10 '11 at 2:58
feedback

closed as not a real question by Chris S, Ward, Caleb, Holocryptic, Tom O'Connor Jun 10 '11 at 15:59

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

In a Debian based distro, you should run (as root or with sudo): apt-get install xorg. This will give you an X server. In a newer Fedora/CentOS/RedHat distro, run yum groupinstall X\ Window\ System.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.