Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-03-2011, 01:32 PM   #1
LQ Newbie
Registered: Apr 2010
Posts: 13

Rep: Reputation: 0
Java access to Xhost on Gridengine


I want to submit a job to my own Gridengine cluster that runs a perl script which does various things including forking to run a small java program which, amongst other things, draws graphs to a png.

Everything works fine until the java tries to output the png. Then I get the following error message.

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$000(
        at sun.awt.X11GraphicsEnvironment$
        at Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
        at HistogramGraph.plot(
        at HistogramGraph.main(
I have tried setting DISPLAY to various values with no success. I understand that qsub does not submit to an interactive queue, but the java is headless - all it needs is to access the X11 terminal, I presume, to access the graphic variables/libraries.

Am I missing some libraries or settings?

Is it possible to access the X term using qsub? If not what is the solution?

BTW - the code works fine if not queued on Gridengine.

Thanks for any help or advice.



java, xterm

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GridEngine cluster fatra2 Linux - Software 0 01-07-2010 10:54 AM
how can i access /proc with java babun Programming 7 04-01-2005 11:55 AM
Xhost/xauth: Can I get access to the graphics console without anyone being logged in? Merlin53 Linux - General 10 01-07-2005 02:32 PM
xhost and X access alaios Linux - Software 2 12-27-2004 09:16 AM
java-vm, xhost +,and ximian evoulution email client SLaCk_KiD Linux - Software 2 10-12-2003 05:10 PM

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration