I don't know whether you guys have ever met this kind of problem in Netbeans.
1. Create a *new project* in Netbeans; 2. Create a .rb file, named *thread.rb,* in the file, only two words: require 'watir' puts "OK" 3. Run it, you will get error message: F:\Watir project\My Test\lib/thread.rb:1:in `require': no such file to load -- watir (LoadError) from F:\Watir project\My Test\lib/thread.rb:1 from e:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require' from e:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:10 from e:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:in `require' from e:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10 4. in the thread.rb file, add another comment: puts "OK" 5. Run it, you will get error message: e:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:176: uninitialized constant Gem::Mutex (NameError) from e:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:in `require' from e:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10 6. Then, all the ruby code in the *netbeans project* you have created will crash when you run it. I met this kind of problem and search for a long time, I can't get why I get this kind of error. When I change the file name of thread.rb to other.rb, anything comes back. Really weird. Expect some experts can give me a hand, why it turns up. Thanks. Wesley Chen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---