jikes

linux定时任务crond export变量问题群友案例

爱⌒轻易说出口 提交于 2020-04-05 22:12:46
linux定时任务crond export变量问题群友案例 1)我写了一个重启resin的脚本,由于业务原因,需要定时在某一个时间重启下resin服务器,于是就在 crontab里配置了如下内容: 50 17 * * 1-5 root /usr/local/bin/resin_restart.sh 其中,resin_restart.sh内容如下: #!/bin/sh /usr/local/bin/xxresin_stop.sh /usr/local/bin/xxresin_start.sh 2)有问题的时刻到来了,服务器虽然定时起来了,但是却报了如下错误: Resin can't load com.sun.tools.javac.Main. Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK. You can either add tools.jar to the classpath or change the compiler to an external one with <java compiler='javac'/> or jikes. 但是

“Error: JAVA_HOME is not defined correctly.” in building Jikes rvm

穿精又带淫゛_ 提交于 2019-12-07 02:48:22
问题 When I built the Jikes RVM on Ubuntu, I got this error. Any idea? 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=

“Error: JAVA_HOME is not defined correctly.” in building Jikes rvm

徘徊边缘 提交于 2019-12-05 06:15:11
When I built the Jikes RVM on Ubuntu, I got this error. Any idea? 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