I don't think it's necessary to include all jar files that come with JDK.
What you do have to include is the directory where your classes are located.


Luis Javier

> This is a classpath problem.  Edit your autoexec.bat
> file to have the following line
>
> SET CLASSPATH=.;
> THEN find all the jar files that come with jdk. in a
> notepad file write down all the full paths to these
> jar files including the jar file itself
> for example
> c:\jdk\src.jar
> c:\jdk\rt.jar etc.
> and include directories that have a bunch of class
> files in them (that are relevant to the jdk).
> then
> SET
> CLASSPATH=%CLASSPATH%;C:\JDK\SRC.JAR;C:\JDK\RT.JAR;
> Dont forget to include . in the classpath.
>
> -Jay Parikh
> --- meiyi leong <[EMAIL PROTECTED]> wrote:
> > I've downloaded jdk1.3, hoping it to run well , a
> > prerequisite for
> > TOMCAT.
> > The tomcat server can run very well, but not jdk1.3.
> > When i run 'java HelloWorld', the error appears...
> >
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError: HelloWorld
> >
> > HOw do i handle it?
> > Helppp
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body:
> > "set JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices!
http://auctions.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to