当我运行rake run:android时,我收到错误(我正在使用Ubuntu):
Your java bin folder does not appear to be on your path.
This is required to use rhodes.
以下是我的bash.bashrc文件的相关部分:
export PATH="$PATH:$HOME/ruby/gems/bin"
export GEM_HOME="$HOME/ruby/gems"
export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/1.8"
export GEM_CACHE="$GEM_HOME/cache"
export RUBYOPT=rubygems
export ANDROID_HOME="/home/username/ruby_files/android-sdk-linux_86"
PATH="$PATH:$ANDROID_HOME/tools"
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0_21
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
答案 0 :(得分:2)
如果我没弄错的话,Rhodes框架正在寻找你的jdk bin,而不是你的jvm bin。
我猜你的路径/usr/lib/jvm/java-6-sun-1.6.0_21/bin
指向你的jvm bin。您需要将jdk bin目录添加到PATH
。它需要访问javac
。