Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 1996 21:17:47 +0900
From:      Hiroyuki Hanai <hanai@astec.co.jp>
To:        mark@quickweb.com
Cc:        hackers@FreeBSD.org
Subject:   Re: JDK 1.0.2 problem..
Message-ID:  <199610201217.VAA00277@astec.co.jp>
In-Reply-To: Your message of "Sun, 20 Oct 1996 01:24:05 -0400 (EDT)"
References:  <Pine.BSF.3.94.961020011607.28243A-100000@vinyl.quickweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Mayo wrote:

> mark:{192}/home/mark/Code/java/Networking % ll
> total 4
> -rw-r--r--  1 mark  mark  1621 Oct 20 00:55 EchoTest.class
> -rw-r--r--  1 mark  mark  1307 Oct 20 00:55 EchoTest.java
> mark:{193}/home/mark/Code/java/Networking % java EchoTest
> Can't find class EchoTest
> mark:{194}/home/mark/Code/java/Networking % 
> 
> ...
>
> P.S.:  . is in my path (current directory), and I also tried 
> java EchoTest.class ... and I'm pretty sure my CLASSPATH is correct
> becuase jdb can list all available classes in the java and sun packages.
> It just can't find my class... and it is public :-)

The current directory must be in CLASSPATH environment variable if your
compiled class file is in the current directory.
The java byte code interpreter, `java', takes the class name in the command
line argument, not the file name.

-----H.Hanai



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610201217.VAA00277>