Try this command before compiling..

export =
CLASSPATH=3D$CLASSPATH:/usr/local/apache/tomcat/.../WEB-INF/classes

Hope this helps,

Srikanth
----- Original Message -----
From: JM
To: [EMAIL PROTECTED]
Sent: Monday, November 06, 2000 11:48 PM
Subject: imports ( 2 )


Hi,

My pages are on a Apache +Tomcat server, but when
I compile my .java file (the one supposed to send mail) with the
"javac myfile.java" command, I always have an error message telling me
the imports javax.mail.*..... (only) haven't been found.

But, when I write the code directly on my jsp file (+ the javax.servlet.*,
javax.servlet.http.*, javax.mail.*, javax.mail.internet.* imports), the
mail is delivered normaly.

My java file is in the folder WEB-INF / classes /
If one of u have an idea on how to compile this file, I'd be glad to know
it,
(whether it is compiled on the server, or on my computer)

Thank you for your answer(s)
JM


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
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