博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux在安装jdk时报错
阅读量:4487 次
发布时间:2019-06-08

本文共 292 字,大约阅读时间需要 1 分钟。

用脚本执行jdk时下面的错误

can not initialize UI,
Running in headless mode,
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
 
如何解决呢?
执行 
sudo vi /etc/profile

 

在文件尾部增加一行:
export  DISPLAY=:0

 

此时再去执行jdk脚本,就没有问题了。

转载于:https://www.cnblogs.com/wangkongming/p/3550074.html

你可能感兴趣的文章
android:exported 属性详解
查看>>
m2e (maven eclipse) 在运行一些命令时出现了无法compile(Unable to locate the Javac Compiler in:)...
查看>>
Underscore骨骼
查看>>
前端发展史
查看>>
sql plus命令大全(2)
查看>>
10.TreeSet、比较器
查看>>
System V 共享内存区
查看>>
SD卡 TF卡 接口引脚定义
查看>>
STM32 逐次逼近寄存器型(SAR)模拟数字转换器(ADC)
查看>>
k8s认证及ServiceAccount-十五
查看>>
【数论】逆元详解
查看>>
精确软件延迟
查看>>
网络流24题 洛谷 2763 试题库问题
查看>>
解决:Unable to execute dex: GC overhead limit exceeded
查看>>
UICollectionViewCell 所遇到的问题
查看>>
flex使用学习
查看>>
Spring Cloud应用监控与管理Actuator
查看>>
H5 video的使用
查看>>
java提高篇-----字符串
查看>>
MFC中 使用Tab Control 控件在对话框中添加属性页
查看>>