ClassNotFound why?

Hi,

I have one problem.

When I create any project using Textpad or JCreator and if I am using packages when I create object of another class which is in same package then I get error thatcannot find symbol

why this happens?

consider this

package demo;

import java.io.*;

publicclass Two

{

public Two()

{

}

public String getTwo()

{

return"2";

}

}

//this is a Simple class

package demo;

import java.io.*;

publicclass One

{

publicstaticvoid main(String args[])

{

Two t;

}

}

this is the class in the same package in which I am creating the object ofTwo class.

But when I try to compile One.java file then error comescannot find symbol : Two t;

[1621 byte] By [student@sunDNa] at [2007-11-27 10:38:07]
# 1

cross-post, already fixed elsewhere, if anyone's about to reply

georgemca at 2007-7-28 18:52:29 > top of Java-index,Java Essentials,Java Programming...