|
Hi, registerDriver needs a driver instance of the driver. Something like: DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver()); should do the trick. Better would be to use the self registering of the Driver: Class.forName("com.ibm.as400.access.AS400JDBCDriver"); this is the preferred way, you can read the driver name from a propertie file this way. Dieter Chris Proctor schrieb: > This message is in MIME format. Since your mail reader > does not understand > this format, some or all of this message may not be > legible. > -- > [ Picked text/plain from multipart/alternative ] > Hi all, > > No one answered this question the last time I asked, so I > thought I'd ask > again. I am getting an error when trying to run a java > servlet. It's telling > me that the registerDriver method isn't in the > DriverManager class, however, > when I look at the javadocs it shows registerDriver as a > method within the > class. Am I doing something wrong? BTW, I downloaded > JTOPEN from the > website. That's what I'm using. If anyone could > straighten me out I'd > appreciate it. Here's my error message: > > "ServletClasses.java": Error #: 300 : method > registerDriver(com.ibm.as400.access.AS400JDBCDriver) not > found in class > java.sql.DriverManager at line 18, column 27 > > Thanks! > > Chris Proctor > Applications Manager > GART SPORTS > 1050 W. Hampden Ave. > Englewood, CO 80110 > (303) 863-2280 > > _______________________________________________ > This is the Java Programming on and around the iSeries / > AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/cgi-bin/listinfo/java400-l > or email: JAVA400-L-request@midrange.com > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.