Re: jdbc driver not recognized
От | wyrd |
---|---|
Тема | Re: jdbc driver not recognized |
Дата | |
Msg-id | 396C0324.C8BED2C@triskelion-nova.com обсуждение исходный текст |
Ответ на | jdbc driver not recognized (Stuart Urban <sturban@cs.uiowa.edu>) |
Ответы |
Re: jdbc driver not recognized
|
Список | pgsql-novice |
Hi Stuart, > I have installed postgresql-7.0.2 on my IRIX 6.5.4 system and everything > works great, except for the JDBC driver. I have made the driver and have > tried to add the .jar file to my classpath. It looked as though it was > successful, but whenever I try to access the driver using the > Class.forName(org.postgresql.Driver) method, I get a > ClassNotFoundException. Has anyone used postgres with Java that can give > me any hints? > I've used the jdbc driver in a servlet rather effectively. You might try doing something like: System.setProperty("jdbc.drivers","postgresql.Driver"); Class.forName("postgresql.Driver"); This works for me with Postgresql 6.5.3, if the package name got changed to org.postgresql you should probably try: System.setProperty("jdbc.drivers","org.postgresql.Driver"); Class.forName("org.postgresql.Driver"); ~Rob -- wYRd.:|:.wyrd@triskelion-nova.com.:|:.prohibitions void where offered de recta non tolerandum sunt
В списке pgsql-novice по дате отправления: