Rubymine 201 / Ubuntu problem
I've installed Rubymine 201 on Ubuntu 9.04.
I can run RubyMine 201 from the command line.
But when I try to run it from an ubuntu launcher, nothing happens.
RubyMine 200 works fine.
What is going on? Has anyone else seen this??
- Andy
请先登录再写评论。
OK I figured it out.
In my launcher I had to run this command: "export RUBYMINE_JDK=/usr/lib/jvm/java-6-sun; /home/hmdir/bin/rubymine201/bin/rubymine.sh"
Something was wrong with the way that rubymine.sh was handling environment variables.
I wasted an hour fixing this problem - should have been picked up by qa - yuck...
Hi Andy,
Sorry for such inconveniences. We publish RubyMine with .sh executable to make it possible to run on various *nix boxes.
We have some plans on providing package repository for most popular distributions. Once it's done this problem will become obsolete.
However we recommend you to run RubyMine from terminal, this can be helpful in case of troubleshooting.
Regards,
Oleg
I have Rubymine 2.02 and have the same launcher problem. Your fix didn't work for me. The EAP releases do work, however. My fix was to modify my 2.02 rubymine.sh with code from the EAP rubymine.sh.
I have these .sh files:
/opt/rubymine93.202/bin/rubymine.sh
/opt/RubyMine-96.1085/bin/rubymine.sh
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
I replaced it with this from the second one:
RUBYMINE_JDK=$JDK_HOME
if [ -z "$RUBYMINE_JDK" -a -e "$JAVA_HOME/lib/tools.jar" ]; then
RUBYMINE_JDK=$JAVA_HOME
fi
if [ -z "$RUBYMINE_JDK" ]; then
# Try to get the jdk path from java binary path
JAVA_BIN_PATH=`which java`
if [ -n "$JAVA_BIN_PATH" ]; then
JAVA_LOCATION=`readlink -f $JAVA_BIN_PATH | xargs dirname | xargs dirname | xargs dirname`
if [ -x "$JAVA_LOCATION/bin/java" -a -e "$JAVA_LOCATION/lib/tools.jar" ]; then
RUBYMINE_JDK=$JAVA_LOCATION
fi
fi
fi
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