Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Help & Support (https://www.gnutellaforums.com/help-support/)
-   -   Gtk-WARNING **: cannot open dislplay: -> error (https://www.gnutellaforums.com/help-support/78065-gtk-warning-cannot-open-dislplay-error.html)

Cage November 23rd, 2007 08:06 PM

Gtk-WARNING **: cannot open dislplay: -> error
 
Hello,

CentOS5 on a remote datacenter server, with no GUI like gnome/kde.
I started it using the same command on Ubuntu Feisty:

Quote:

java -Xmx256m -Djava.awt.headless=true -jar /root/phex/phex.jar
And here's a little snippet.
Quote:

[root@blc ~]# java -Xmx256m -Djava.awt.headless=true -jar /root/phex/phex.jar

(.:3515): Gtk-WARNING **: cannot open display:

[root@blc ~]# java --v
gij: unrecognized option -- `--v'
Try `gij --help' for more information.

[root@blc ~]# gij --help
Usage: gij [OPTION] ... CLASS [ARGS] ...
to interpret Java bytecodes, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file

--cp LIST set class path
--classpath LIST set class path
-DVAR=VAL define property VAR with value VAL
-?, --help print this help, then exit
-X print help on supported -X options, then exit
--ms=NUMBER set initial heap size
--mx=NUMBER set maximum heap size
--verbose[:class] print information about class loading
--showversion print version number, then keep going
--version print version number, then exit

Options can be specified with `-' or `--'.

See GCJ: The GNU Compiler for Java - GNU Project - Free Software Foundation (FSF) for information on reporting bugs
[root@blc ~]#
Please help.
Thank you.

GregorK November 24th, 2007 01:42 AM

I don't think Phex will run on GCJ. GCJ is not fully supporting Java 1.5 yet, I think.
I recommend you try to use Sun Java.

Cage November 24th, 2007 03:45 PM

Quote:

Originally Posted by GregorK (Post 298579)
I don't think Phex will run on GCJ. GCJ is not fully supporting Java 1.5 yet, I think.
I recommend you try to use Sun Java.

Hi, initially I had tried to do so, and didn't work.
So I resorted to yum install java.

If you could be so kind to help me remove all these 'offending' javas and show me how I can install sun java, I'd be very grateful.

Thank you.

GregorK November 24th, 2007 04:22 PM

Try this:
man update-java-alternatives

or this:

How to install a specific version of Java on Ubuntu « The Wayward Word Press

Cage November 24th, 2007 10:20 PM

Quote:

Originally Posted by GregorK (Post 298652)

Hi,

I'm on CentOS5.

Quote:

[root@blc ~]# man update-java-alternatives
No manual entry for update-java-alternatives
[root@blc ~]#

GregorK November 25th, 2007 02:28 AM

Thought I have read Ubuntu somewhere...
But why dont you try google?? It brings you a huge bunch of CentOS5 and Java related pages... like:
HowTos/JavaOnCentOS - CentOS Wiki

Cage November 25th, 2007 08:15 AM

To be honest, I tried 'em all. I'm a googler more than a forumer, lol.
And nothing seems to be working.

arne_bab November 28th, 2007 01:31 AM

Do you have an X-Server installed on the server?

Some Java classes still need the presence of an X-Server, even though they don't use it.


All times are GMT -7. The time now is 09:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.