You must have a class called Connection in your class path somewhere. If you define you field as java.sql.Connection conn = null; it should work. You don't need to cast it with the DriverManager because there is no Class called DriverManager in your classpath, it will bring in the one from the java.sql package. Barry +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.