NoClassDefFoundError on org.jruby.Main
问题 I'm trying to install the hpricot gem on my Windows machine using JRuby 1.4.0RC1. I'm trying to follow the advice to the related question (see -> Installing hpricot for JRuby). Per the answer's advice I pulled the git head of hpricot and from it's dir ran: jruby -S rake package_jruby cd pkg sudo jgem install ./hpricot-0.8.1-jruby.gem But when I run this I get the following NoClassDefFoundError: Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main Caused by: java.lang