DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    ROC
    Posts
    6

    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);

  2. #2
    Join Date
    Oct 2004
    Posts
    311
    looks like you are missing a couple of import statements.
    Try importing the java.sql.* package.

  3. #3
    Join Date
    Apr 2005
    Location
    ROC
    Posts
    6
    this problem are solve, thank you!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links