File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes cannot access javax.sql.DataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "cannot access javax.sql.DataSource" Watch "cannot access javax.sql.DataSource" New topic
Author

cannot access javax.sql.DataSource

Richard Williams
Greenhorn

Joined: Mar 05, 2003
Posts: 13
Hi
i've created an application to access a database using postgresql. The program works fine within the sun ONE IDE, but when i try to run it externally from the IDE it gives me this error: -
cannot access javax.sql.Datasource
file javax\sql\DataSource.class not found
I thought this was a part of JDBC, how can it be missing???
I new to java, could i be making a simple mistake?
TIA


Is there a light at the end of the tunnel ... or is it just the front of an approaching Train !!!
Richard Williams
Greenhorn

Joined: Mar 05, 2003
Posts: 13
i get the error while trying to set the connection source for a NBCachedRowSet: -
nBCachedRS.setConnectionSource(cSource);
like i say, this works ok inside sun ONE ... but i need it to run external to the IDE. Any help/ideas would be awsome TIA
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

It's a part of J2EE and should be in j2ee.jar
Richard Williams
Greenhorn

Joined: Mar 05, 2003
Posts: 13
Thanx for the help m8
I've fixed the problem, now i have another, but its regarding my manifest in the jar file for my program. It's telling me that is cannot locate main. I've put in the extra carraige return.
Manifest-Version: 1.0
Main-Class: CMSDatabase
(extra line here)
is this the correct layout for my manifest, ... oops i just realised shouldn't i take this to a different section of the forum hehe
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

It's OK, I can push you over to the J2EE forum
(consider it punishment for m8 )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot access javax.sql.DataSource