Re: jdbc connection problem to ms sql server 2000



Problem resolved.

Stupid MS default path for the driver installation.
Setting the classpath at dos command line like c:\program files\...
is the culprit.

NickName wrote:
What have been done:
-------------------------------
installed jdbc driver for ms sql server 2000;
found a sample / edited it to form some java code for testing
connection to a sql server 2000 db;
compiled it;

java run time/environment: jre1.5.0x

Problem:
when attempted to execute/run the java class even adding all the
correct classpath (for mssqlserver.jar and the two jar files), and yet
jre complained about class not found error, wtf?

searched the NG for possible solution to no avail. dissed.

what's wrong?

tia.

.



Relevant Pages

  • RE: NoClassDefFoundError after upgrade to FC3
    ... it's a lot harder to figure out what is missing. ... Check the script that starts the IDE and see if it is setting a classpath. ... Sometimes the CP is set using a command line option of the java command ... NoClassDefFoundError after upgrade to FC3 ...
    (Fedora)
  • Re: Question for Java Gurus
    ... > people running into classpath issues while doing command line work. ... in which case it's clear that their environment is impeding their ... success at learning Java. ... programming, that's a negligible space of education. ...
    (comp.lang.java.programmer)
  • Re: Question for Java Gurus
    ... > people running into classpath issues while doing command line work. ... in which case it's clear that their environment is impeding their ... success at learning Java. ... programming, that's a negligible space of education. ...
    (comp.lang.java.help)
  • Re: Question for Java Gurus
    ... > people running into classpath issues while doing command line work. ... in which case it's clear that their environment is impeding their ... success at learning Java. ... programming, that's a negligible space of education. ...
    (comp.lang.java.softwaretools)
  • Re: Java server wont run after reboot
    ... > package definitions in your source code. ... Execute from that directory, no classpath definition needed. ... > java HelloWorld ... > If you compile to a different location, ...
    (RedHat)