you have to set ur classpath TO your package. For e.g if ur package is c:\tejas\javaservlet\mypackage then u have to set ur classpath as set classpath=%classpath%c:\tejas;
in Unix if ur package is under /tejas/javaservlet/mypackage then u have to set ur classpath to setenv CLASSPATH=/tejas:
Vijay Naidu
-----------------------------------------------------------------
Smile Is A Curve That Makes Everything Straight. Keep Smiling
-----------------------------------------------------------------
From: tejas patel <[EMAIL PROTECTED]>
Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: classpath error
Date: Wed, 27 Mar 2002 10:04:08 -0800
Hi all,
I have created package and put my servlets under it
this is my costlist.java file which is under javaservlet/mypackage directory
package javaservlets.mypackage;
import javaservlets.reportit;
public class costlist extends HTTPSERVLETS{
method doPost()
method Report()
{
report r1 = new report();
}
}
under javaservlets/reportit I have report class. i.e report.java
I am trying to create report object inside costlist class and I am getting this errors:
costlist.java:2: cannot resolve symbol
symbol : class reportit
location: package javaservlets
import javaservlets.reportit;
^
costlist.java:210: cannot resolve symbol
symbol : class report
location: class javaservlets.db.costlist
report r1 = new report();
^
costlist.java:210: cannot resolve symbol
symbol : class report
location: class javaservlets.db.costlist
report r1 = new report();
^
---------------------------------
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
Join the world�s largest e-mail service with MSN Hotmail. Click Here
___________________________________________________________________________ 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
