About the Can’t connect to X11 window server error

155 views
Skip to first unread message

rspreafico

unread,
May 22, 2015, 11:58:45 AM5/22/15
to qual...@googlegroups.com
Hello,

I am running Qualimap on Ubuntu server with no X11 installed. I was getting this error:

Exception in thread “main” java.lang.InternalError: Can’t connect to X11
window server using ‘xxxx:xx.0’ as the value of the DISPLAY variable.

As suggested in the FAQs (http://qualimap.bioinfo.cipf.es/doc_html/faq.html) I tried to unset the DISPLAY variable, as well as to assign it to :0 but neither worked for me.

Eventually after some Googling I found this fix: I edited the qualimap shell script and changed this line:

java $java_options -classpath $QUALIMAP_HOME/qualimap.jar:$QUALIMAP_HOME/lib/* org.bioinfo.ngs.qc.qualimap.main.NgsSmartMain "${ARGS[@]}"

to (added the option in red):

java -Djava.awt.headless=true $java_options -classpath $QUALIMAP_HOME/qualimap.jar:$QUALIMAP_HOME/lib/* org.bioinfo.ngs.qc.qualimap.main.NgsSmartMain "${ARGS[@]}"

This worked for me. Sharing this fix just in case somebody else runs into the same issue. Also, maybe would it be possible to include in future releases of Qualimap an explicit option for that?

Thank you for the awesome work!

Best,

Roberto

Konstantin Okonechnikov

unread,
May 27, 2015, 11:18:35 AM5/27/15
to qual...@googlegroups.com
Dear Roberto,

thanks a lot for this info!

I will update documentation for sure and perhaps also include a fix into the main script (as an option, for example).

Once this is done, I ll write again. 

--
  Konstantin

Konstantin Okonechnikov

unread,
Jun 15, 2015, 9:58:57 AM6/15/15
to qual...@googlegroups.com
Hi Roberto,

Qualimap documentation was updated:


Also you are noted in the HISTORY file and last news message:

--
  Konstantin

On Friday, May 22, 2015 at 5:58:45 PM UTC+2, rspreafico wrote:
Reply all
Reply to author
Forward
0 new messages