qualimap error:Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:22.0' as the value of the DISPLAY variable.
1
0
Entering edit mode
2.1 years ago
Nich ▴ 10

I encountered this error during the use of qualimap:

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:22.0' as the value of the DISPLAY variable.

I found the relevant solution on the official website of qualimap, but I don't know how to implement it.

Qualimap is a binary file with no parameters to receive java configuration during execution.

Qualimap.jar cannot be started using "java -jar qualimap.jar".

Can someone help me to look at it?

qualimap X11 • 992 views
ADD COMMENT
0
Entering edit mode
2.1 years ago

use a X11-aware terminal. For example, if you're connecting to a server using ssh, use the '-X' option. https://unix.stackexchange.com/questions/12755

ADD COMMENT
0
Entering edit mode

Thanks for your answer! Because I want to use qualimap in my pipline, I hope that qualimap can not display the graphical interface and run the complete process directly in the background. Is there a solution for this?

ADD REPLY
0
Entering edit mode

Additionally it’s possible to use a special option of Java -Djava.awt.headless=true to disable display requirement.

Enabling this option can be performed by setting JAVA_OPTS variable in system or by changing java_options variable in the qualimap script:

java_options="-Djava.awt.headless=true -Xmx$JAVA_MEM_SIZE -XX:MaxPermSize=1024m"

ADD REPLY

Login before adding your answer.

Traffic: 2044 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6