install trouble on Ubuntu 8.10

Hello All,
    I have been using the current release on Windows XP, and really enjoy the Ruby IDE. I am starting to use Ubuntu more, and i'm in the process of setting up my development machine. When i try to install the RubyMine app, i get the following error:


jason@jason-ubuntu-vm:/usr/bin/rubymine558/bin$ ./rubymine.sh
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

i installed thd JDK via the Synaptic package manager.

thank you,
Jason

3 comments
Comment actions Permalink

Hi Jason,

You should at first set environment variable JDK_HOME or RUBYMINE_JDK (see rubymine.sh)

#  rubymin.sh

...


# ---------------------------------------------------------------------
# Before you run RubyMine specify the location of the
# JDK 1.6 installation directory which will be used for running RUBYMINE
# ---------------------------------------------------------------------
if [ -z "$RUBYMINE_JDK" ]; then
  RUBYMINE_JDK=$JDK_HOME
  if [ -z "$RUBYMINE_JDK" ]; then
    echo ERROR: cannot start RubyMine.
    echo No JDK found to run RubyMine. Please validate either RUBYMINE_JDK or JDK_HOME points to valid JDK installation
  fi
fi

..



E.g.

export JDK_HOME="/usr/lib/jvm/java-6-sun/"


Use verify that the variable is set by the “env” command or “echo $JDK_HOME

0
Comment actions Permalink

probably java is already installed in /usr/bin (try which java command) so you probably will be able to set it as fiollows
export JDK_HOME="/usr"
I put thuis line in rubymine.sh for convenience

0
Comment actions Permalink

Hi all,

probably java is already installed in /usr/bin (try which java command) so you probably will be able to set it as fiollows
export JDK_HOME="/usr"


Most likely java is installed on ubuntu 8.10 in /usr/lib/jvm/java-6-sun or something like this.

Thanks,
Oleg

0

Please sign in to leave a comment.