try including the absolute path of the jar file,
javac -classpath /home/httpd/classes/servlet.jar:/home/httpd/classes
InsContactenos.java
or
javac -classpath c:\dir\servlet.jar;c:\dir InsContactenos.java
Ricky Y. Artigas
Analyst/Programmer
Information Technology Division
Easycall Communications Phils., Inc.
418 Arayat St., Mandaluyong City 1550, Philippines
Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager: 141-002955
Email: [EMAIL PROTECTED]
> -------------------------------
> IMPORTANT NOTICE:
> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
>
>
> -----Original Message-----
> From: Mauricio Villa [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 12:43 AM
> To: [EMAIL PROTECTED]
> Subject: FW: Trivial Question
>
> The total code was cut to simplify the question, I dont know why the
> compiler is making an error in this line, I'm compiling by using:
>
> javac -classpath servlet.jar InsContactenos.java
>
> the servlet.jar file is in the same directory in wich resides
> InsContactenos.java. I only want that this piece of code compiles ok, to
> aggregate the rest of the code.
>
>
> -----Original Message-----
> From: Paul Doherty [mailto:[EMAIL PROTECTED]]
> Sent: Lunes, 22 de Enero de 2001 11:03 a.m.
> To: [EMAIL PROTECTED]
> Subject: Re: Trivial Question
>
>
> protected String db.. = .. does not make sense. Why would you want it to
> be
> protected?
>
> Also ClassNotFoundException and SQLException must be caught and handled
> appropiately.
>
> Reqards,
> Paul.
>
> -----Original Message-----
> From: Mauricio Villa [SMTP:[EMAIL PROTECTED]]
> Sent: 22 January 2001 15:11
> To: [EMAIL PROTECTED]
> Subject: Trivial Question
>
> Hi,
>
> I am dummie with java programming, and I'm trying to compile my first
> servlet but i got some errores, would anybody give me some help?
>
> I'm trying to compile this servlet, but the compiler is reporting that
> there
> is a missing therm in line 10 ("public void doPost....) and ';' expected
> in
> the same line. What must I do?
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.sql.*;
>
>
> public class InsContactenos extends HttpServlet
> {
>
> public void doPost(HttpServletRequest req, HttpServletResponse res)
> throws ServletException,IOException{
>
> protected String dbURL = "jdbc:odbc:orclx07";
> protected String dbuserID = "xxx";
> protected String dbpasswd = "xxx";
> protected Connection dbConnection;
>
>
> String Fecha_Recibo = req.getParameter("Fecha_Recibo");
> String Email_Origen = req.getParameter("Email_Origen");
> String Destinatario = req.getParameter("Destinatario");
> String Asunto = req.getParameter("Asunto");
> String Cc = req.getParameter("Cc");
> String Texto = req.getParameter("Texto");
>
>
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> //dbConnection = DriverManager.getConnection(dbURL, dbuserID
> ,dbpasswd );
> dbConnection =
> DriverManager.getConnection("jdbc:oracle:oci:solutech/solutech@orclx07");
>
> Statement stmt = dbConnection.createStatement();
> String sql= "INSERT INTO bdct_conepros (FECHRECI, EMAILORIG,
> EMAILDEST, ASUNCONE, COPICONE, DATAMENS, FECHRESP, DATARESP) VALUES ('" +
> Fecha_Recibo + "', '" + Email_Origen +"', '" + Destinatario + "', '" +
> Asunto + "', '" + Cc + "','" + Texto + "', ' ', ' ', ' '";
> ResultSet rs = stmt.executeQuery(sql);
> stmt.close();
> dbConnection.close();
> }
> }
>
> __________________________________________________________________________
> _
> 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