I recently installed Ruby on my Windows PC.
I also installed Jruby. After that I installed Rails using gems.
So when I tried to execute “rails server” on CMD an error would crop up saying “Cannot find JDK” or something like that. So I installed Jruby.
Now I get “Cannot find Jruby.”
Can someone point out what I need to do?
[edit]
I want to be able to use rails normally, without all the hassle created by Jruby installation.
It sounds like you have some JRuby remnants in your
PATHvariable somewhere. if you checked yourPATHthen possibly a gem is installed as a JRuby gem or is locked as a JRuby gem in your bundle.Possibly your RubyGems Environment is messed up. Try running
gem envand look for anything out of the ordinary.Anyway, try updating your bundle or checking your bundle’s platform (
bundle platform).If neither of those work using
where.exe railswill get you a match of all therailsbatch files you can call from yourPATHand you can debug it from there.Just a note: There shouldn’t be anything you need to muck with in registry, most everything you might need is probably in your
environment variables