No JDK found to run RubyMine.
I just downloaded RubyMine 558 and extracted it at /usr/local (I'm on Ubuntu 8.04 with Java6). I set both JDK_HOME and RUBYMINE_JDK env vars in ~/.bashrc:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JDK_HOME=$JAVA_HOME
export RUBYMINE_JDK=$JAVA_HOME
When I do the following:
cd /usr/local/rubymine558/bin
sudo ./rubymine.sh
I always get the following error:
ERROR: cannot start RubyMine.
No JDK found to run RubyMine. Please validate either RUBYMINE_JDK or JDK_HOME points to valid JDK installation
exec: 60: /bin/java: not found
Does anyone know what I'm doing wrong? I've set both of those env vars and can echo them just fine, but clearly rubymine.sh can't see them.
Thanks,
Zach
请先登录再写评论。
Hello Zach,
When you add these lines to bashrc you set up this env variables for bash shell. But if you take a look at rubymine.sh
you`ll see that it uses /bin/sh shell, NOT bash.
As for me I have executable script like
Thanks,
Oleg