“Error: java_home is not defined correctly.” Building jikes RVM
•
Java
When I built jikes RVM on Ubuntu, I received this error Any ideas?
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
Environment variables: Paths
/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
I checked Java_ Java in the home / bin directory can work No matter how I change the environment variable, the error is always complaining
It seems that I haven't changed the correct "position"
Solution
Run this command:
find . -exec grep "jdk1.6.0" {} \;
To find out which Java_ Home is set to the file in this path
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码