gpt4 book ai didi

ubuntu - 线程 "main"java.awt.HeadlessException 中的异常

转载 作者:行者123 更新时间:2023-12-04 18:42:42 24 4
gpt4 key购买 nike

我正在命令行中运行程序 FASTQC(Windows 10 PC 上的 Ubuntu 终端),但出现以下错误。我不确定如何解决这个问题,如果有人已经知道解决方案,我将不胜感激。

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.desktop/java.awt.Window.<init>(Window.java:548)
at java.desktop/java.awt.Frame.<init>(Frame.java:423)
at java.desktop/java.awt.Frame.<init>(Frame.java:388)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
at uk.ac.babraham.FastQC.FastQCApplication.<init>(FastQCApplication.java:63)
at uk.ac.babraham.FastQC.FastQCApplication.main(FastQCApplication.java:338)
最好的,
阿玛雷

最佳答案

你不说,但我怀疑你在运行程序时没有任何命令行参数。帮助( fastqc -h )说:

If no files to process are specified on the command line then the programwill start as an interactive graphical application. If files are providedon the command line then the program will run with no user interactionrequired. In this mode it is suitable for inclusion into a standardisedanalysis pipeline.


如果您想在非交互模式下运行它(这是我一直使用它的方式),只需在命令行中包含您的 FASTQ 文件的名称。

关于ubuntu - 线程 "main"java.awt.HeadlessException 中的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70097668/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com