thanks
Jyo
Campbell Ritchie wrote:Did you have a package name in your .java file?
Campbell Ritchie wrote:That means you can only execute the application from outside the folder the .class file is in.
thanks
Jyo
thanks
Jyo
Kalabaw moo wrote:Maybe you could show the code?
Campbell Ritchie wrote:What is in your system CLASSPATH? That may be the problem.
thanks
Jyo
Please check; you didn't answer that. Your problem might be caused by an incorrect CLASSPATH. The errors you are seeing suggest you have a correct PATH.I myself wrote:What is in your system CLASSPATH? That may be the problem.
What difference will that make?Kalabaw moo wrote:put public in your class.. recompile and run
Campbell Ritchie wrote:Both classes are in the same package; they have access to each other whether they are marked public or not. Your JVM has access to the package when you call java practice.TestIOMain, so I don't think making the classes public will make any difference.
Jyoti: please tell us what's in your system CLASSPATH.
thanks
Jyo
thanks
Jyo
Campbell Ritchie wrote:Well done . If you have no system CLASSPATH then it tries the "current directory." Beware: there are a few applications (QuickTime maybe) which set a system CLASSPATH when they are installed. So you might need to edit your CLASSPATH by adding a . if the problem ever recurs.
thanks
Jyo
Campbell Ritchie wrote:Well done . If you have no system CLASSPATH then it tries the "current directory." Beware: there are a few applications (QuickTime maybe) which set a system CLASSPATH when they are installed. So you might need to edit your CLASSPATH by adding a . if the problem ever recurs.
Oddly enough, there is somebody else on these fora today who may have the same problem.