安装 Rhodes 框架时遇到问题
当我运行 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
When I run rake run:android, I get the error (I'm using Ubuntu):
Your java bin folder does not appear to be on your path.
This is required to use rhodes.
Here is the relevant part of my bash.bashrc file:
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我没记错的话,Rhodes框架正在寻找你的jdk bin,而不是你的jvm bin。
我猜测您的路径
/usr/lib/jvm/java-6-sun-1.6.0_21/bin
指向您的 jvm bin。您需要将 jdk bin 目录添加到您的PATH
中。它需要访问javac
。If I'm not mistaken, the Rhodes framework is looking for your jdk bin, not your jvm bin.
I'm guessing that your path
/usr/lib/jvm/java-6-sun-1.6.0_21/bin
points to your jvm bin. You need to add your jdk bin directory to yourPATH
. It needs to accessjavac
.