>From: lramirez <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: jAR FILE
>Date: Thu, 6 Jul 2000 11:14:41 -0600
>
>Hi friends !!
>
>I have been working on JDBC, and i downloaded a Jar File which connects
>through a Sql Server.
>In the code I USE
>
>     Class.forName ("net.avenir.jdbc2.Driver");
>       Properties prop = new Properties ();
>       Connection ctn = DriverManager.getConnection(url,prop);
>       Statement st= ctn.createStatement();
>       rs = st.executeQuery(cadena);
>       .................
>

Luis, al agregar jars, debes incluir todo el nombre, por ejemplo
java -classpath d:\jdbc\driver.jar c

espero esto te funcione.


>I use javac c.java  and works fine. The problem is when I RUN : java
>-classpath d:\jdbc c  and it says :
>that
>java.lang.NoClassDefFoundError: c
>
>its getting me crazy jejej
>
>any suggestions will be appreciated !!
>
>thanks a lot !!
>
>Luis
>
>_____________________________________________________________________
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

___________________________________________________________________________
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

Reply via email to