JRuby loadpath messed up
问题 I am embedding JRuby on a JAR file and it's being used by a EAR file that I am deploying to WebSphere. When I call the class from my workspace, it works fine, however when I call it inside WebSphere, here's what I get: [3/31/11 11:21:15:984 BRT] 00000042 SystemErr R classpath:/lib/xmlcompare.rb:4:in `require': no such file to load -- rubygems (LoadError) from classpath:/lib/xmlcompare.rb:4 from classpath:/lib/xmlcompare.rb:1:in `require' from <script>:1 After some research, I noticed that