• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class not found error

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
i have this simple class in c:\mydir
class moh
{
public static void main(String arg[])
{
System.out.print("Hello from ");
se s = new se();
}
}
Also i have this se class in the same directory(c:\mydir )
public class se
{
se()
{
System.out.println("this a se class ");
}
}
I compiled both and so i got two classes moh.class and se.class in c:\mydir
what happened i moved se.class to directory c:\
and i tried to set path in autoexe.bat as :
SET CLASSPATH=%CLASSPATH%;.;c:\se.class and i restart my computer.
i tried to run moh class from c:\mydir i got a error message as:
class not found:se.
i will appreciate your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic