Ubuntu配置JDK出现的The program 'java' can be found in the following packages
2017-04-19 22:14
555 查看
控制台输入sudo gedit /etc/profile
进入文本编辑器在末尾处添加
#Jdk Config
export JAVA_HOME=/路径/jdk1.7.0_79
export JRE_HOME=/路径/jdk1.7.0_79/jre
export PATH=/路径/jdk1.7.0_79/bin:$PATH
export CLASSPATH=.:/路径/jdk1.7.0_79/lib:/路径/jdk1.7.0_79/jre/lib
第一行一定要加,文中路径是jdk包所在的路径
最后控制台输入source /etc/profile保存修改
进入文本编辑器在末尾处添加
#Jdk Config
export JAVA_HOME=/路径/jdk1.7.0_79
export JRE_HOME=/路径/jdk1.7.0_79/jre
export PATH=/路径/jdk1.7.0_79/bin:$PATH
export CLASSPATH=.:/路径/jdk1.7.0_79/lib:/路径/jdk1.7.0_79/jre/lib
第一行一定要加,文中路径是jdk包所在的路径
最后控制台输入source /etc/profile保存修改
相关文章推荐
- [Ubuntu] 解决The program 'make' can be found in the following packages:
- [Ubuntu] 解决The program 'make' can be found in the following packages
- ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages
- The program 'java' can be found in the following packages
- ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages
- the program javac can be found in the following packages ubuntu
- linux使用mysql 在输入了mysql 之后出现 the programe can be found in the following packages
- The program 'rails' can be found in the following packages:
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…
- 解决Linux下svn问题:The program 'svn' can be found in following packages...
- mysql:The package 'mysql' can be found in following packages
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/
- nginx报错The program 'nginx' can be found in the following packages
- The program 'node' can be found in the following packages: * node * nodejs-legacy Try: sudo apt-ge
- can not be found in source packages. Check the inheritance chain from your module
- 最近一个工程出现的问题 以前工程可用的代码到这个工程里也会显示 The following classes could not be found: - ImageView (Change to and
- Myeclipse出现can not be found.please check the location and try again
- Could not initialize master info structure; more error messages can be found in the MySQL error log
- 【Android】提示Note: This element has no attached source and the Javadoc could not be found in the attac
- 『Android/Java』Android Studio XML Editor Preview Error:The following classes could not be found