今天把自己的电脑装成了ubuntu12.10版本,在配置jdk时出现了以下问题,你们看看怎么解决?
我在~/.bashrc 中配置时环境变量,配置如下:- export JAVA_HOME=/usr/lib/jvm/jdk7
- export JRE_HOME=${JAVA_HOME}/jre
- export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
- export PATH=${JAVA_HOME}/bin:$PATH
复制代码 验证:
joyce@joyce-Rev-1-0:~$ java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)
joyce@joyce-Rev-1-0:~$ javac -version
javac 1.7.0_15
可是在打开eclipse时老是弹出说PATH找不到相关路径:
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:
/home/joyce/Java/eclipse/jre/bin/java
java in your current PATH
请问哪里出了问题 |
|