Common mistake.
You need to have . (current directory) in your PATH.
See the leading dot on the example below:
CLASSPATH=.:/usr/local/java/lib/classes.zip:/usr/local/java/jsdk/lib/jsdk.jar
Vinay Pai wrote:
>
> Hello,
>
> I am having the following problem when I try to execute a java progra
Hello,
try adding a "." to the classpath.
CLASSPATH=.:/usr/local/java/lib/classes.zip:/usr/local/java/jsdk/lib/jsdk.jar
Chris
Vinay Pai wrote:
>
> Hello,
>
> I am having the following problem when I try to execute a java program ,
> says :
> can't find class test
...
> The classpath variab
Hello,
I am having the following problem when I try to execute a java program ,
says :
can't find class test
This happens although the file test.class and test.java are in the same
directory from where I am executing java. I am however able to compile java
programs without any problems. Also I c