try: java -classpath .;%classpath% HelloWorld

ATB
Monish




Chris Pratt <[EMAIL PROTECTED]> on 06/09/99 11:14:11 AM

Please respond to "A mailing list for discussion about Sun Microsystem's
      Java              Servlet API Technology."
      <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: unni/Polaris)
Subject:  Re: Run Time Error




You'll probably also want to make HelloWorld a public class.
    (*Chris*)

----- Original Message -----
From: FOLEY Mark (EDS) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 08, 1999 9:03 PM
Subject: Re: Run Time Error


> try this:
> java -classpath . HelloWorld
>
> > -----Original Message-----
> > From: Florence Tan
> > Sent: Wednesday, 9 June 1999 12:44
> > To:   [EMAIL PROTECTED]
> > Subject:      Run Time Error
> >
> > Hi all,
> >
> > I am new in JAVA and need some help here.  I had installed JDK1.2.1 and
> > complete all the setting necessary.  My problem here is that I can
> > compile a simple java program or servlet program and I can run
> > appletviewer to view the java applet or run the servlet through my web
> > server.  However, I cannot run my java program on DOS prompt.  e.g.  I
> > am testing a simple java program called HelloWorld.java
> >
> > class HelloWorld {
> >  public static void main(String args[ ]){
> >  System.out.println("Hello World");
> >       }
> > }
> >
> > There is no error during compilation but everything I type "java
> > HelloWorld" on the dos prompt, it will gives me this error:
> > "Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorld".
> >
> > BTW, I am using Windows NT4.
> >
> > Please advice !
> >
> > Regards,
> > Florence
> >
> >
__________________________________________________________________________
> > _
> > 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

___________________________________________________________________________
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