InterBase 下有个测试JDBC的Applet,我使用命令行 java interbase.interclient.utils.CommDiag测试数据库能够成功 可是在浏览器里就不行,出现如上错误,页面文件如下:<html> <head> <title>InterClient Diagnostics</title> </head><body> <center> <h2>InterClient Communication Diagnostics Applet</h2> </center>A communication diagnostics applet <code>interbase.interclient.utils.CommDiag</code> should appear in its own frame shortly. CommDiag may also be run as an application as follows: <pre> java interbase.interclient.utils.CommDiag </pre> <p> This html file includes a reference to the <code>interclient.jar</code> Java archive file. This archive includes the CommDiag utility, all locale specific resource bundles, and the InterClient JDBC driver with its extensions. <p> Still having problems? See <a href="docs/help/help.html">InterClient Help</a>.<center> <applet archive="interclient.jar" code="interbase.interclient.utils.CommDiag" width=0 height=0></applet> </center></body></html>各位帮我看看有什么问题啊???是配置上的
这是权限问题,你用的web server 是什么?如果是tomcat你只要找到出问题的地方,看看用到了什么.jar,将这个.jar和相应的.jar从$catalina_home/webapps/.../WEB-INF/lib下移到$catalina_home/common/lib下(WEB-INF/lib下不能留有副本)就可以了。
java interbase.interclient.utils.CommDiag测试数据库能够成功
可是在浏览器里就不行,出现如上错误,页面文件如下:<html>
<head>
<title>InterClient Diagnostics</title>
</head><body>
<center>
<h2>InterClient Communication Diagnostics Applet</h2>
</center>A communication diagnostics applet
<code>interbase.interclient.utils.CommDiag</code>
should appear in its own frame shortly.
CommDiag may also be run as an application as follows:
<pre>
java interbase.interclient.utils.CommDiag
</pre>
<p>
This html file includes a reference to the
<code>interclient.jar</code> Java archive file.
This archive includes the CommDiag utility, all locale specific resource bundles,
and the InterClient JDBC driver with its extensions.
<p>
Still having problems?
See <a href="docs/help/help.html">InterClient Help</a>.<center>
<applet archive="interclient.jar" code="interbase.interclient.utils.CommDiag" width=0 height=0></applet>
</center></body></html>各位帮我看看有什么问题啊???是配置上的