Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing Javax.sql.DataSource

Status
Not open for further replies.

Sherron

Technical User
May 11, 2001
4
US
I'm trying to access SQL Server 2000 from Unix.

I got an error message when compile a simple java program:
test.java:12: Class javax.sql.DataSource not found in import.
import javax.sql.DataSource;
^

I already have jdbc drive for Microsoft SQL Server. msbase.jar, mssqlserver.jar, msutil.jar

Which jar file I'm missing?

Thanks advance.

Sherron ^(^.^)^
 
That is really weird. The javax.sql.DataSource class is part of the core API (ie you don't need any special jars to use it).
Can you compile the code on another machine to see if it works ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Thank you very much. I pointed to an older version on the machine.

Sherron
^(^o^)^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top