Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

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. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

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
add comment

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.

share|improve this answer
add comment

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