From: Idealone Ideally Date: 2008-02-14T18:52:40+09:00 Subject: Calling different class files using require Hi all, I have 2 files which are placed in two different folders. These folders are not under any Classpath & i am using a windows system. I have the following snippet of program, which i am stuck with, FILE 1: --------------------------------------------------------------------------------- class Test puts " This out is from file1 " end --------------------------------------------------------------------------------- FILE 2: --------------------------------------------------------------------------------- require "Test" puts "This output is from File2" --------------------------------------------------------------------------------- If File 1 is and File 2 are in two different locations, i get the following error : FILE2.rb:1:in `require': no such file to load -- Test (LoadError) from run.rb:1 If both the files are in same folder ,it works but if they are located in different locations it fails, How can make it work, should i provide anything under "require" Thanks -- Posted via http://www.ruby-forum.com/.