No JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME environment variable……问题的解决
来源:互联网 发布:nodejs 搭配nginx 编辑:程序博客网 时间:2024/06/06 14:29
在安装了Ubuntu系统后,搭建JavaEE开发环境时,发现用命令行打开Intellij idea 或者 eclipse报错,说我没有设这JDK的环境变量,可是我确实已经设置了。当然如果你是因为没有设置JDK环境变量才报这个错误,最后我会给出JDK环境变量配置方法。
报错图:
不知有没有注意,在这里我是用root用户(#)运行的,如果我换成普通用户运行($),就能够成功运行了。个人认为,是因为JDK文件或者配置文件针对不同用户的权限不同。
下面给出jdk环境变量的配置:找到 /etc/profile 在最后面加入
export JAVA_HOME=/usr/java/jdk1.8.0_121export JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/libexport PATH=$JAVA_HOME/bin:$PATH
0 0
- No JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME environment variable……问题的解决
- No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points
- No JDK found. Please validate either ANDROID_STUDIO_JDK, JDK_HOME or JAVA_...
- Android Studio No JDK found. Please validate either STUDIO_JDK, JDK_HOM
- tomcat7,no JDK found - please set JAVA_HOME
- Error: JAVA_HOME not found in your environment. Please set the JAVA_HOME variable in your environmen
- exe4j打包jar文件为exe文件出现的问题:The JAVA_HOME environment variable does not point to a working 32-bit JDK or
- 针对Error: You must either define the environment variable DJANGO_SETTINGS_MODULE ...问题的解决
- Ubuntu下安装javaIDE IntellliJIDEA9.0.3时提示ERROR: cannot start IntelliJ IDEA. No JDK found to run IDEA. Please validate either IDEA_J
- The JAVA_HOME environment variable does not point to a working 32-bit JDK or JRE.
- The JAVA_HOME environment variable does not point to a working JDK or JRE.
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- The JRE_HOME OR JAVA_HOME environment variable is not defined correct
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly
- 解决The environment variable JAVA_HOME does not point to a valid JVM installation 问题
- Linux下解决no jdk found问题
- Python自动化运维课程学习--Day1
- Linux读取文件属性C接口测试
- 【maven】---pom.xml-dependencies
- Services 01
- Javascript面向对象编程(三):非构造函数的继承
- No JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME environment variable……问题的解决
- java中Jackson库的ObjectMapper类
- 【codeforces 766A】Mahmoud and Longest Uncommon Subsequence
- Ubuntu下局域网拷贝文件
- c# json
- Android Services之启动
- QQ18年,解密8亿月活的QQ后台服务接口隔离技术
- 启动安卓中的定时功能
- HDU4010 Query on The Trees LCT