|
-
Nov 20th, 2006, 04:34 PM
#1
Thread Starter
Frenzied Member
cant get Java code to work
Hello
My JDBCDemo class code is
Code:
public class JDBCDemo {
Connection db_connection;
Statement db_statement;
ResultSet result;
}
and it is not importing the required libraries which define Connection, Statement, Resultset.
I guess these are all javaclasses, if they are, is there any way to find which libraries they are located in, so that i may add the required libraries? is there any way i can add the rt.jar to JDBCDemo.java, or is that not possible
i tried to compile JDBCDemo.java and it came up with the following
C:\JDBCApp>javac JDBCDemo.java
JDBCDemo.java:2: cannot resolve symbol
symbol : class Connection
location: class JDBCDemo
Connection db_connection;
^
JDBCDemo.java:3: cannot resolve symbol
symbol : class Statement
location: class JDBCDemo
Statement db_statement;
^
JDBCDemo.java:4: cannot resolve symbol
symbol : class ResultSet
location: class JDBCDemo
ResultSet result;
^
3 errors
C:\JDBCApp>
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
|
Click Here to Expand Forum to Full Width
|