I'm using AWT to render the image, and it most likely needs an x server on linux. I recommend running XVFB. Try doing the following before you run java:

Xvfb :100 -ac
export DISPLAY=100.0

Best,
Alok

On Wed, Feb 23, 2011 at 8:15 AM, brajendra kumar <brajbio.22@gmail.com> wrote:
Hi Alok,

I had downloaded the "TreeView-1.1.5r2-bin.tar.gz" file and want to run it from command line on my centos x86_64 server with
 java version "1.4.2" and gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-44)

But while executing the command i am getting the error as below

###################################################
-bash-3.1$ cd TreeView-1.1.5r2-bin
-bash-3.1$ ll
total 364
drwxr-xr-x 2 brajcn brajcn   4096 Jun 26  2010 coordinates
-rw-r--r-- 1 brajcn brajcn  18009 Jun 26  2010 gpl.txt
drwxr-xr-x 2 brajcn brajcn   4096 Jun 26  2010 images
drwxr-xr-x 2 brajcn brajcn   4096 Jun 26  2010 lib
drwxr-xr-x 2 brajcn brajcn   4096 Jun 26  2010 META-INF
drwxr-xr-x 2 brajcn brajcn   4096 Jun 26  2010 plugins
-rw-r--r-- 1 brajcn brajcn 322184 Jun 26  2010 TreeView.jar
-rw-r--r-- 1 brajcn brajcn     32 Jun 26  2010 win32TreeView.bat
-bash-3.1$ java -jar -Xmx500m TreeView.jar
File not found, will try from URL
Making new configuration file /home/brajcn/.javaTreeViewXmlrc
Plugin Jar jar:file:/home/brajcn/Hclust_NGS/JtreeView/TreeView-1.1.5r2-bin/./plugins/Dendrogram.jar!/

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


-bash-3.1$ java -jar TreeView.jar -r ~/Hclust_NGS/dlcl.cdt -x Dendrogram -- -o ./braj_image.png -s 10x1 -a 0 -c 1
File not found, will try from URL
Making new configuration file /home/brajcn/.javaTreeViewXmlrc
Plugin Jar jar:file:/home/brajcn/Hclust_NGS/JtreeView/TreeView-1.1.5r2-bin/./plugins/Dendrogram.jar!/

(.:15631): Gtk-WARNING **: cannot open display:
-bash-3.1$

####################################################################################



My purpose is just to create the .png from the *.cdt file.


I wonder the same commands are working on my local machine with Linux(fedora) GUI.

Can you help me resolving the error i am getting on server, so that i can successfully create the deprogram image.

I will greatly appreciate your response in this concern.


Thanks,
Brajendra Kumar
+91-9884859121

India