Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

jbuilder and sqljdbc.jar qn

1 view
Skip to first unread message

phimalaya

unread,
May 5, 2006, 3:44:09 PM5/5/06
to
hello,

i have installed jdbc driver for 2005 from microsoft. i have put sqljdbc.jar
in the classpath as well as in jbuilder 2006 library. still i get the
following error.

-----------------------------
java.lang.ClassNotFoundException:
com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at dbinfo.dbinfo.getConnection(dbinfo.java:27)
at dbinfo.dbinfo.displayDbProperties(dbinfo.java:64)
at dbinfo.dbinfo.main(dbinfo.java:150)

Error Trace in getConnection() :
com.microsoft.jdbc.sqlserver.SQLServerDriver

Error: No active Connection
------------------------------

what am i missing?


Paul Furbacher [TeamB]

unread,
May 5, 2006, 9:23:15 PM5/5/06
to
phimalaya wrote:

> i have installed jdbc driver for 2005 from microsoft. i have put sqljdbc.jar
> in the classpath as well as in jbuilder 2006 library. still i get the
> following error.

> [...]
> what am i missing?

Reading the manual: "Configuring and adding libraries to your
project." Note the statement to the effect that JBuilder
does *not* use the classpath. Think about it for a moment
or two and you'll realize that it couldn't possibly do that
and be able to run *your* apps?! How many things would have
to be on JBuilder's classpath to cover *all* possibilities for Java
development? As an IDE, one of its responsibilities is to set
up the environment for running and debug your apps: an important
part of that is *constructing* a classpath given the declarations
you make in the Required Libraries and Runtime Configurations.

Read all about it.


--


Paul Furbacher (TeamB)

Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html

Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.

0 new messages