“错误:JAVA_HOME没有正确定义.”在构建Jikes rvm

前端之家收集整理的这篇文章主要介绍了“错误:JAVA_HOME没有正确定义.”在构建Jikes rvm前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在Ubuntu上构建Jikes RVM时,我收到了这个错误.任何的想法?
bin/buildit localhost production
---> Config: production
/bin/bash --login -c  '/bin/bash --login -c  "   cd /home/jack/Programs/jikesrvm-3.1.2 &&  export JAVA_HOME=/opt/jdk1.6.0 &&   ant very-clean -Dhost.name=ia32-linux &&  ant check-components-properties -Dhost.name=ia32-linux -Dtarget.name=ia32-linux -Dcomponents.cache.dir=/home/jack/.buildit_components_cache  &&   ant -Dtarget.name=ia32-linux -Dconfig.name=production -Dhg.revision= -Dhost.name=ia32-linux -Dcomponents.cache.dir=/home/jack/.buildit_components_cache "' 
Error: JAVA_HOME is not defined correctly.
  We cannot execute /opt/jdk1.6.0/bin/java
Wed Jun 13 12:23:37 EDT 2012
===================== Summary =====================
Local   : /home/jack/Programs/jikesrvm-3.1.2
Build   : ubuntu:/home/jack/Programs/jikesrvm-3.1.2
Target  : ubuntu:/home/jack/Programs/jikesrvm-3.1.2
Start   : Wed Jun 13 12:23:37 EDT 2012
Config  : production [Failed Wed Jun 13 12:23:37 EDT 2012]
===================================================

OS:

Linux ubuntu 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686 GNU/Linux

环境变量:
路径

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun-1.6.0.22/bin<

JAVA_HOME

/usr/lib/jvm/java-6-sun-1.6.0.22

我检查了JAVA_HOME / bin目录下的java,它可以工作.
无论我如何改变环境变量,错误一直在抱怨

“We cannot execute /opt/jdk1.6.0/bin/java”.

似乎我没有修改正确的“位置”.

解决方法@H_301_28@
运行此命令:
find . -exec grep "jdk1.6.0" {} \;

要找出将JAVA_HOME设置为该路径的文件.

原文链接:https://www.f2er.com/java/121458.html

猜你在找的Java相关文章