This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Jan 20, 2009 11:44 AM by Oleg Shpynov  
Zach Cox Newbie 1 posts since
Jan 20, 2009
Currently Being Moderated

Jan 20, 2009 7:09 AM

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

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Jan 20, 2009 11:44 AM in response to: Zach Cox
Re: No JDK found to run RubyMine.

Hello Zach,

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

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

export JDK_HOME=/opt/jdk1.6
cd /opt/rubymine615/bin
exec ./rubymine.sh

Thanks,

Oleg

More Like This

  • Retrieving data ...