From: Justin Collins Date: 2009-03-16T06:05:27+09:00 Subject: Re: new to ruby: uninitialized constant Paul Varoutsos wrote: > C:\NetBeansWorkspace\KnightsTour\lib\main.rb:3:in `const_missing': > uninitialized constant KnightsTour (NameError) > from C:\NetBeansWorkspace\KnightsTour\lib\main.rb:8 > Justin Collins wrote: > >> Paul Varoutsos wrote: >> >>> Any help would be greatly appreciated. >>> >>> >> Do you "require" the files containing the other two classes? Ruby will >> not search for them automatically the way, for example, Java does. >> >> -Justin >> > > Yes I did > Then it is hard to tell what is going on without seeing your code. This error generally means you either have not made the class available or there is a typo somewhere, assuming KnightsTour is a class. Or possibly you are using it before it is defined. -Justin