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.
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