The moose likes Websphere and the fly likes  Please! How do I use javax.sql in WSAD? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark " Please! How do I use javax.sql in WSAD?" Watch " Please! How do I use javax.sql in WSAD?" New topic

Please! How do I use javax.sql in WSAD?

Josh M Kilpatrick

Joined: Jun 20, 2002
Posts: 1
I am migrating from VAJ 3.5 to WSAD 4.0. I am getting errors at certain import statements, such as the ones for javax.sql. I noticed that this package is not in WSAD. Is there another package it uses instead? How can I import this package? :roll:
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
javax.sql IS in WSAD, but you have to set the classpath correctly for your project. Did you remember to make your project an EJB project (or a Web project) when you imported your code, or are you working in a generic Java project -- the former two set the classpath to include the right JAR files automatically, but the latter does not...

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
I agree. Here's the link: http://aspose.com/file-tools
subject: Please! How do I use javax.sql in WSAD?
Similar Threads
DataSource class not found
package javax.sql not found error
Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang
Inserting Date in database