You have to add tools.jar to classpath

A.Somsak

paurnima sabne wrote:
>
> Hi
>
> While compiling java file from javawebserver2.0 root
> i have given folling command
>
> javac -cp d:/javawebserver2.0/lib/servlet.jar -d javawebserver2.0/servlets
> myfirst.java
>
> After executing, it gives following error
> "Can't find class sun/tools/javac/main"
>
> What is the reason behind it? And what is the solution?
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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".
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