我在WINDOWS2000(装有OFFICE XP)开发的JAVA应用系统,DATABASE是ACCESS,在JAVA中用如下方法连接ACCESS数据库:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String str="jdbcdbcRIVER=Microsoft Access Driver (*.mdb);DBQ=D:/paper.mdb";
conn=DriverManager.getConnection(str) ;
我的问题是开发出来的JAVA系统在WINDOW2000,WINDOW XP上面都可以正常的运行, 但到98上运行时部分FUNCTION可以正常的RUN,部分FUNCTION就不可以RUN(需要说明的是这些不能正常运行的FUNCTION包含有OLE对象数据类型), 并且在查询时报下面的错误,请大家帮看看指点一下,谢谢了.
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.sql.SQLException: [Microsoft][ODBC Microsoft Access 驱动程序] OLE Automat
ion 内部错误
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(Unknown Source)
at sz.com.gui.QuestionView.getQuestionData(QuestionView.java:713)
at sz.com.gui.QuestionView.commonDataRefresh(QuestionView.java:563)
at sz.com.gui.QuestionView.init(QuestionView.java:378)
at sz.com.gui.QuestionView.<init>(QuestionView.java:133)
at sz.com.gui.ApplicationMainMenu.butQuestion_actionPerformed(Applicatio
nMainMenu.java:229)
[此贴子已经被作者于2005-10-24 12:06:40编辑过]
|