• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class not found error

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
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.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!