• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot access javax.sql.DataSource

 
Richard Williams
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Richard Williams
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a part of J2EE and should be in j2ee.jar
 
Richard Williams
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's OK, I can push you over to the J2EE forum
(consider it punishment for m8 )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic