Hi,

have you set your CLASSPATH env variable or are you providing a classpath
(-classpath directory:directory:directory/file.jar.....) with your command
line?
Additionally you have to provide the fully qualified Classname
(package.package.package.ClassName, for example
org.apache.catalina.startup.Catalina)
And the class you want to execute must have a public static void main(String
args[]) method.

Mika

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 8:08 PM
Subject: NoClassDefFound


> Hi all,
>
> I am trying to run a stand alone class using the "java +
> classname.class" command and I got the NoClassDefFoundError exception.
> Could someone tell me what I should do?  Thanks very much.
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to