The program 'java' can be found in the following packages
来源:互联网 发布:ubuntu 卸载qq 编辑:程序博客网 时间:2024/05/22 02:03
在修改Java路径时出现了问题
我在修改/etc/profile文件目录里面出现了问题。
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>
原本是因该在profile末尾处加上
#Jdk Config
JAVA_HOME=/usr/lib/jdk1.7.0_65
JAVA_BIN=/usr/lib/jdk1.7.0_65/bin
PATH=$PATH:$JAVA_BIN
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
但是之前没操作过,在查询
$java -version
一直报错,后来发现就是路径配置错误。
你的jdk 1.7.0_65放在目录下,你的java_home就写那个目录。
例如我把jdk 1.7.0_65这个文件夹放在/usr/lib下面,我上面写的就对了。但是如果改成别的路径就错了
2 0
- The program 'java' can be found in the following packages
- Ubuntu配置JDK出现的The program 'java' can be found in the following packages
- ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages
- ubuntu14.10 安装maven出现The program 'mvn' can be found in the following packages错误
- nginx报错The program 'nginx' can be found in the following packages
- the program javac can be found in the following packages ubuntu
- [Ubuntu] 解决The program 'make' can be found in the following packages:
- 解决Linux下svn问题:The program 'svn' can be found in following packages...
- mysql:The package 'mysql' can be found in following packages
- The program 'node' can be found in the following packages: * node * nodejs-legacy Try: sudo apt-ge
- linux使用mysql 在输入了mysql 之后出现 the programe can be found in the following packages
- can not be found in source packages. Check the inheritance chain from your module
- Linux matplotlib 库安装 * The following required packages can not be built: * freetype, png
- The packages can be overrided by Java Endorsed Standards
- Question 10: Given the following program snippet, what can we conclude about the use of dynamic_cast in C++?
- In C++, which of the following syntax can be used for instantiating an object named arr of the vecto
- jQuery selectors can be grouped into the following categories:
- Rendering Problems The following classes could not be found
- Codeforces 689.C Mike and Chocolate Thieves 二分+数学
- java之静态
- 【OpenCV笔记 03】OpenCV头文件探秘
- uC/OS-II内核架构解析---uC/OS-II任务管理
- hdu 4763 Theme Section 扩展kmp
- The program 'java' can be found in the following packages
- 数据泵expdp,impdp
- c# fixed 语句
- SpringMVC入门之一
- uC/OS-II内核架构解析---uC/OS-II通信与同步
- hadoop
- "SurfaceView控件"-出现的问题记录
- PHPMailer发匿名邮件及Extension missing: openssl的解决
- 安装与配置windbg的symbol(符号)