java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDriver 
Author Message
 java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDriver
Hi,
I made a project using Java access SQL Server 2000 database. The
client and server side working well when I compile and run them in
Ultra editor. But when I want to run the server program under DOS
prompt, if server class name is server.class, e.g: I type
d:\Java\Server\java server
The error appears: java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDriver.

Can anybody tell me what is the problem and how to solve it? Why I can
run it under Ultra editor but not DOS?Thanks a lot.

zhao



Sun, 01 Jan 2006 16:17:29 GMT
 java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDriver

Quote:

> I made a project using Java access SQL Server 2000 database. The
> client and server side working well when I compile and run them in
> Ultra editor. But when I want to run the server program under DOS
> prompt, if server class name is server.class, e.g: I type
> d:\Java\Server\java server
> The error appears: java.lang.ClassNotFoundException:
> com.microsoft.jdbc.sqlserver.SQLServerDriver.

> Can anybody tell me what is the problem and how to solve it? Why I can
> run it under Ultra editor but not DOS?Thanks a lot.

Presumably you've got Ultra editor set up to use a different classpath
which includes the SQL server driver.

--

http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too



Sun, 01 Jan 2006 17:33:05 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver

2. java.lang.ClassNotFoundException : oracle.jdbc.driver.OracleDriver

3. java.lang.ClassNotFoundException : oracle.jdbc.driver.OracleDriver

4. java.lang.NoClassDefFoundError: com/sybase/jdbc/RawToAsciiInputStream

5. java.lang.ClassNotFoundException: sun.jdbc.JdbcOdbcDriver

6. java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver on IE5

7. java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver

8. alt.comp.databases,comp.databases,comp.databases.ms-sqlserver

9. alt.comp.databases,comp.databases,comp.databases.ms-sqlserver

10. WA-SEATTLE-191936--DBA Skills-C++-MFC-SYBASE-SQLSERVER-ORACLE-Java-ASP-HTML-DHTM

11. DC-Washington-259543--Software Development-E-Commerce-Java-C-C++-ORACLE-SQLSERVE


 
Powered by phpBB® Forum Software