当前位置: 技术问答>java相关
几个java的问题,急!!!!!!!!!
来源: 互联网 发布时间:2015-02-11
本文导语: 1.我的applet在ie中运行显示错误:java.lang.NoClassDefFoundError:com/borland/dx/dataset/DataSet 但我的classpath中分明是设置了这个类包,而且其它不带数据库操作的applet在ie中运行正常。 2.这段代码运行正常, class....{ System.setPr...
1.我的applet在ie中运行显示错误:java.lang.NoClassDefFoundError:com/borland/dx/dataset/DataSet
但我的classpath中分明是设置了这个类包,而且其它不带数据库操作的applet在ie中运行正常。
2.这段代码运行正常,
class....{ System.setProperty"jdbc.drivers","oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection"jdbc:oracle:thin:@192.168.1.102:1521:ora8",username ,password );
stmt=con.createStatement();
String sql="select * from ycb.kqbmk";
rs=stmt.executeQuery(sql);
while(rs.next())
{
jComboBox2.addItem(rs.getString(1));
}
sql="select * from ycb.kqdak where bm='高研所'";
rs=stmt.executeQuery(sql);
while(rs.next())
jComboBox3.addItem(rs.getString(2));
for(int i=1;i
但我的classpath中分明是设置了这个类包,而且其它不带数据库操作的applet在ie中运行正常。
2.这段代码运行正常,
class....{ System.setProperty"jdbc.drivers","oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection"jdbc:oracle:thin:@192.168.1.102:1521:ora8",username ,password );
stmt=con.createStatement();
String sql="select * from ycb.kqbmk";
rs=stmt.executeQuery(sql);
while(rs.next())
{
jComboBox2.addItem(rs.getString(1));
}
sql="select * from ycb.kqdak where bm='高研所'";
rs=stmt.executeQuery(sql);
while(rs.next())
jComboBox3.addItem(rs.getString(2));
for(int i=1;i