dcsimg
can't find class?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   shanti_srinivasan
Posted On:   Thursday, May 31, 2001 09:17 PM

Hi Everybody,
I am new to Java.I written a small program.I am able to compile successfully without any error.But when I run the program using 'java' interpreter,I'm getting the following error:
"can't find class [filename]"
Can anybody guide me to solve this problem.

Thanks in advance,
shanti

Re: can't find class?

Posted By:   Dmitry_Polishchuk  
Posted On:   Tuesday, June 26, 2001 06:16 AM

Also, make sure that you're running your programm without .class extension
Say, your class named as shanti.test .
then wrong way to start it would be
java shanti.test.class
and correct one:
java shanti.test

Re: can't find class?

Posted By:   Vidhyasankar_Natarajan  
Posted On:   Thursday, May 31, 2001 09:44 PM

Set Classpath properly Shanthi.
About | Sitemap | Contact