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 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 can run servlets through the browser.
> The classpath variable is as follows :
>
> CLASSPATH=/usr/local/java/lib/classes.zip:/usr/local/java/jsdk/lib/jsdk.jar