-
Connection Error???
1.I want to make an single class to connect database's, but I try for a long time, what I to do?
attach to files of two java files!!!
error scription:
ConnectionMgr.java:4: cannot resolve symbol
symbol : class Connection
location: class ConnectionMgr
private static Connection conn = null;
^
ConnectionMgr.java:26: cannot resolve symbol
symbol : class Connection
location: class ConnectionMgr
public Connection connect()throws Exception
^
ConnectionMgr.java:22: cannot resolve symbol
symbol : variable DriverManager
location: class ConnectionMgr
conn = DriverManager.getConnection(jdbcUrl, user, pwd);
-
looks like you are missing a couple of import statements.
Try importing the java.sql.* package.
-
this problem are solve, thank you!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks