Opps. I didn't notice the name of the jar file.
Try the line below but append the name of the Jar file after d:\jdbc.
-----Original Message-----
From: Joe Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 1:45 PM
To: [EMAIL PROTECTED]
Subject: Re: jAR FILE
If you are in a different directory than D:\jdbc then it won't find the
class. Your classpath only point to D:\jdbc;
I assume your class is c.class.
Try:
java -classpath "d:\jdbc;." c
-----Original Message-----
From: lramirez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 1:15 PM
To: [EMAIL PROTECTED]
Subject: jAR FILE
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);
.................
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
___________________________________________________________________________
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