Connection Error???


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Connection Error???

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!!

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center