amos
(amos)
中级会员
 
中级会员
UID 27346
精华
0
积分 243
帖子 243
金钱 243 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2004-3-29
状态 离线
|
[推荐阅读] 已编译的html帮助文件怎样可以转换成.htm格式的文件?
import java.sql.*;
public class condb{
public Connection conn;
public clearResult;
public void condb(String drvName,String url,String uname,String passwd);
throws SQLException
{
if(conn!=null && !conn.isClosed())
throw new SQLException("The connection has been established already.");
clearResult();
try{
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
conn=DriverManager.getConnection("jdbc racle:thin 888.1.30.10:1521 asys", "system", "123456");
}
catch(Exception ex)
{
throw new SQLException(ex.toString());
}
}
}
还是不行,提示:
its/condb.java [4:1] <identifier> expected
public clearResult;
^
its/condb.java [6:1] illegal start of type
throws SQLException
^
its/condb.java [20:1] <identifier> expected
}
^
3 errors
编译 condb. 时出错
|
|