搜索
查看: 885|回复: 0

[Java] fastqc安装-X11 DISPLAY variable-JAVA

[复制链接]

12

主题

14

帖子

79

积分

注册会员

Rank: 2

积分
79
发表于 2018-9-7 09:07:07 | 显示全部楼层 |阅读模式

之前安装过fastqc,运行没问题。许久没用突然发现不能用了。

重新安装后发现还是不能用

提示如下:
./fastqc
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
        at java.awt.Window.<init>(Window.java:536)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.JFrame.<init>(JFrame.java:189)
        at uk.ac.babraham.FastQC.FastQCApplication.<init>(FastQCApplication.java:63)
        at uk.ac.babraham.FastQC.FastQCApplication.main(FastQCApplication.java:332)


google一下,说是DISPLAY的设置问题,按照建议修改环境变量 .bashrc
export DISPLAY=:0.0
然后 source .bashrc
测试接着报错:
$./fastqc
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:611)
        at uk.ac.babraham.FastQC.FastQCApplication.main(FastQCApplication.java:322)


请问怎么解决呢?



上一篇:9.6 R数据科学学习
下一篇:基因位置图?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|生信技能树    

GMT+8, 2019-6-20 05:58 , Processed in 0.036665 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.