LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2009, 01:37 AM   #1
ritesh_163
LQ Newbie
 
Registered: Jul 2009
Location: Kathmandu, Nepal.
Posts: 5

Rep: Reputation: 0
problem with Gtk-WARNING in RHEL 5 while running java?


hello everybody,

I am having problem while starting java application in RHEL 5 with 32bit. I have updated by linux machine from RHEL 4 to RHEL 5, but the same java application which run smoothly in RHEL 4 doesn't run on RHEL 5 through SSH Secure Client(remotely). Whenever I run the java application through SSH as a root, it displays error as below:
Code:
(.:4731): Gtk-WARNING **: cannot open display:
I have installed JDK 1.5. It works fine if I manually run the application in main server without remote access. It also doesn't work and display same error if it is run through crontab too.

Can anyone tell me what is the solution for this problem.
Thank You.
 
Old 07-02-2009, 03:37 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
How did you do the "update" from rhel4 to rhel 5 .
Did you do the RECOMMENDED fresh install ?
a upgrade from 5.2 to 5.3 is fine and will work but a upgrade from 4 to 5.3 most likely will not.
 
Old 07-02-2009, 04:01 AM   #3
ritesh_163
LQ Newbie
 
Registered: Jul 2009
Location: Kathmandu, Nepal.
Posts: 5

Original Poster
Rep: Reputation: 0
New installation was done on new server with RHEL 5. Old server contain RHEL 4 and other java applications.
Thank You.
 
Old 07-03-2009, 03:28 AM   #4
ritesh_163
LQ Newbie
 
Registered: Jul 2009
Location: Kathmandu, Nepal.
Posts: 5

Original Poster
Rep: Reputation: 0
Now, it works through SSH remote client but when run the java application through crontab for automatic processing, it displays the error (Gtk-WARNING **: cannot open display. What sort of configuration is needed to work smoothly as in RHEL 4?

Last edited by ritesh_163; 07-03-2009 at 03:30 AM.
 
  


Reply



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
problem with running windows programs with wine under RHEL 4, x86_64 saak.stepi Linux - Software 1 12-21-2007 04:31 AM
libswt-gtk-3.2-java and libswt3.2-gtk-java conflict (etch) Lokathor Debian 8 12-20-2007 02:46 PM
Weird font problem with GTK applications running in KDE Jeshua Linux - Software 1 02-22-2006 08:16 AM
running problem of gtk application sonu1082 Linux - Software 0 11-03-2004 10:12 AM
problem when running gtk-gutella Basel Linux - Software 1 02-05-2004 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration