江湖救急,急,打开applet,,结果有些机器能正常访问,有些报错,出现类找不到
jsp
<div id="divInfo" style="display : ''">正在获取打印数据,请稍候...</div>
<div id="divDisplay" style="display : 'none'">
<OBJECT name="F1Book1" classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase = "http://java.sun.com/products/plugin/1.4/jinstall-1_4-windows-i586.cab#Version=1,4,1,mn" WIDTH = "100%" HEIGHT = "100%">
<PARAM NAME = CODE VALUE = "com.sinosoft.report.f1report.AppletControl" >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = ARCHIVE VALUE = "../zjreport/New_F1J9Swing.jar" >
<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
<param name = "ReportURL" value = "<%= appPath+ "/F1PrintKernelJ1?" + cal.getTimeInMillis() + "=" + cal.getTimeInMillis() + "&RealPath=" +request.getParameter("RealPath")%> ">
<param name = "IsNeedExcel" value = "true">
<COMMENT>
<EMBED type="application/x-java-applet;jpi-version=1.4.1" CODE="com.sinosoft.report.f1report.AppletControl" CODEBASE="." ARCHIVE="../zjreport/New_F1J9Swing.jar" WIDTH="100%" HEIGHT="100%" pluginspage="http://java.sun.com/j2se/1.4.1/download.html">
<NOEMBED>Could not find a plugin supported by your browser. Please download Sun's Java Plugin 1.4.1</noembed>
</EMBED>
</COMMENT>
</OBJECT>
</div>
报错如下:
Java Plug-in 1.6.0_31
使用 JRE 版本 1.6.0_31-b05 Java HotSpot(TM) Client VM
用户主目录 = C:\Documents and Settings\L-Q
----------------------------------------------------
c: 清除控制台窗口
f: 终结在结束队列上的对象
g: 垃圾收集
h: 显示此帮助消息
l: 转储类载入程序列表
m: 打印内存使用
o: 触发日志记录
q: 隐藏控制台
r: 重新载入策略配置
s: 转储系统和部署属性
t: 转储线程列表
v: 转储线程堆栈
x: 清除类载入程序高速缓存
0-5: 设置跟踪级别为<n>
----------------------------------------------------
载入:找不到类 com.sinosoft.report.f1report.AppletControl。
java.lang.ClassNotFoundException: com.sinosoft.report.f1report.AppletControl
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
异常:java.lang.ClassNotFoundException: com.sinosoft.report.f1report.AppletControl
applet java web
[解决办法]
每个机器的环境有啥区别
[解决办法]
这个得确认一下不同机器上面的环境有什么区别
[解决办法]
把不能访问测试机的防火墙关掉试试
[解决办法]
看一下安全设置