I just updated my Ruby/Rails/Gem version and I am having problems. What do I do?

It is a good idea to first determine whether the problem is with the update or with the IDE. To do that, you can turn on detailed logging to see the actual command line. Then, in a terminal window, cd to the root folder of the project and run the command line.

For example, when you choose Migrate Database from the pop-up menu, you will see in the log file something similar to one of the following lines, depending on which interpreter you are using:

  • C:\ruby\bin\ruby.exe "-rC:\Program Files\NetBeans 6.0\ruby1\sync-stdio.rb" C:\ruby\bin\rake db:migrate
  • "C:\Program Files\Java\jdk1.6.0_02\jre\bin\java" -Xverify:none -da -Xmx256m -Xss1024k -classpath "C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib\asm-2.2.3.jar;C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib\asm-commons-2.2.3.jar;C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib\backport-util-concurrent.jar;C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib\bsf.jar;C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib\jline-0.9.91.jar;C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib\jruby.jar" "-Djruby.base=C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2" "-Djruby.home=C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2" "-Djruby.lib=C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\lib" -Djruby.shell="cmd.exe" -Djruby.script=jruby.bat org.jruby.Main "C:\Program Files\NetBeans 6.0\ruby1\jruby-1.0.2\bin\rake" db:migrate

Copy the command from the log file and execute it in the terminal window (remember to cd to your project root).

If you see the same problems when you run the command from a terminal window, you might want to check with the aliases or forums for that interpreter/gem to see if there is a solution.

If you determine that the problem is related to the IDE, here are some places to check to see if the problem is a known bug, and whether a build is available with a fix or there is a work around.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo