hi fawaz,
make your testDB class public and also ensure that you have '.' or current
directory in your classpath
Rgds
Padmanava

-----Original Message-----
From: Fawaz Ahmad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 4:15 AM
To: [EMAIL PROTECTED]
Subject: Java setup??


Thanks padmanava for your help!  I have one more question.
I am having a lot of funky problems w/ my java setup!!!!
I wrote a very simply test class.  all it does is output "test" to the
console.  However, i can not get it to run!  i keep getting the error

Exception in thread "main" java.lang.NoClassDefFoundError: testDB

(testDB is the name of the class).  It compiles fine but i can not get it
to run!!  the code is:

class testDB{

    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}

I can get servlets to run fine, but i can't get it to run this program.  I
have tried adding everything i can possibly think of to the classpath.
(BTW, i'm running it on Win2K server).  Does anyone have any idea what is
going on?

Fuz


On Tue, 17 Sep 2002, Padmanava Debnath wrote:

> Hi Fawaz,
> Apache Tomcat is added to your services during installation with
'automatic'
> as its startup type. Go to services, and change startup type to 'manual',
> and then manually go about starting and stopping Tomcat.
> Rgds
> Padmanava
>
> -----Original Message-----
> From: Fawaz Ahmad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 1:42 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat shutdown?
>
>
> Hello,
>
> Is Tomcat always available to localhost?  It seems that regardless of what
> I do, I have access to http://localhost:8080/ and all of the examples, but
> when I try to shutdown tomcat, it gives all those errors like its not
> running, and I can't start tomcat either.  does anyone know whats going
> on?
>
> Fuz
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
> **********************************************************************
> The information in this message is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this
message
> by anyone else is unauthorized. If you are not the intended recipient, any
> disclosure, copying, or distribution of the message, or any action or
> omission taken by you in reliance on it, is prohibited and may be
unlawful.
> Please immediately contact the sender if you have received this message in
> error.
>
> **********************************************************************
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to