BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

jbuilder and sqljdbc.jar qn

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
phimalaya
Guest





PostPosted: Fri May 05, 2006 9:15 pm    Post subject: jbuilder and sqljdbc.jar qn Reply with quote



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?
Back to top
Paul Furbacher [TeamB]
Guest





PostPosted: Sat May 06, 2006 2:14 am    Post subject: Re: jbuilder and sqljdbc.jar qn Reply with quote



phimalaya wrote:

Quote:
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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.