Hi biostars!
I was using qualimap to evaluate bam files. The code I used was qualimap --java-mem-size=700G multi-bamqc -r -d <mapfile1> -gff <genomic.gff> -outdir <multi_bamqc> -outformat PDF:HTML
The error reported like this:
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
I guessed it was because that our server was not with X11 installed. So I removed the HTML
choice. The code changed into qualimap --java-mem-size=700G multi-bamqc -r -d <mapfile1> -gff <genomic.gff> -outdir <multi_bamqc> -outformat PDF
However, it still reported the same error.
what should be the reason please? If it was because of the absence of X11, is it necessary for me to install X11? (I try to avoid this situation for some reason...)
Thank you.
Yingzi
Set
-Djava.awt.headless=true
(or System.setProperty("java.awt.headless", "true");thank you. I learned that your code is to guide the server in a headless mode. I tried them and it reported either "command not found" or “syntax error near unexpected token `"java.awt.headless"'. I am still trying.