LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

Rep: Reputation: 0
Java access to Xhost on Gridengine


Hi

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.

Code:
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(X11GraphicsEnvironment.java:53)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
        at HistogramGraph.plot(HistogramGraph.java:119)
        at HistogramGraph.main(HistogramGraph.java:69)
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.

Mark
 
  


Reply

Tags
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 09:54 AM
how can i access /proc with java babun Programming 7 04-01-2005 10:55 AM
Xhost/xauth: Can I get access to the graphics console without anyone being logged in? Merlin53 Linux - General 10 01-07-2005 01:32 PM
xhost and X access alaios Linux - Software 2 12-27-2004 08:16 AM
java-vm, xhost +,and ximian evoulution email client SLaCk_KiD Linux - Software 2 10-12-2003 04:10 PM


All times are GMT -5. The time now is 07:04 AM.

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