View Single Post
  #1 (permalink)  
Old November 23rd, 2007
Cage Cage is offline
Apprentice
 
Join Date: November 21st, 2007
Posts: 6
Cage is flying high
Question 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.
Reply With Quote