On Tue, 13 Oct 1998 14:31:36 +0530 (IST), Syed Mubin wrote:
> Hi,
>
> I've installed jdk1.1.6 on RHL5.1 ,Iam able to create and run
> applets but when i try to compile and run a standlalone
> application program i get the following errors
>
> class hello{
>
> public static void main(String args[])
> {
> System.out.println("HELLO");
> }
> }
>
> ERROR SHOWN
> [syed@barfi syed]$ javac hello.java
> [syed@barfi syed]$ java hello
> Can't find class hello
Try doing an ls -l hello.class after the javac. If the file is not
there, do a find . -name hello.class
If it showed up in a sub-directory, you most likely made a package
statement in the source file that placed it inside a package rather
than at the "root"
Oh, and try this without CLASSPATH set. (I noticed that you had
CLASSPATH set. If you really need CLASSPATH set, make sure you have
"." in the CLASSPATH in addition to the other directories - just in
case)
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz