gpt4 book ai didi

applet - java.lang.NoClassDefFoundError 与我的小程序

转载 作者:行者123 更新时间:2023-11-30 05:52:43 25 4
gpt4 key购买 nike

我的应用程序中有一个小程序,当我调用我的 jsp 时出现此错误

java.lang.ClassNotFoundException: VisualisationCourbeCharge.class 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)

我的代码:

    StringBuffer applet = new StringBuffer();
applet.append("<object classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" ");
applet.append("width = \"750\" height = \"500\" hspace = \"0\" vspace = \"0\" align = \"middle\">\n");
applet.append("\t<param name=\"archive\" value=\"jfreechart-0.9.8.jar,jcommon-0.8.0.jar\">\n");
applet.append("\t<param name=\"codebase\" value=\"./ihm/applet/graphe/\">\n");
applet.append("\t<param name=\"code\" value=\"VisualisationCourbeCharge.class\">\n");
applet.append("\t<param name=\"");
applet.append(ConstantesApplet.PARAMETRE_LANGUE);
applet.append("\" value=\"");
applet.append(langue);
applet.append("\">\n");


<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width = "750" height = "500" hspace = "0" vspace = "0" align = "middle">
<param name="archive" value="jfreechart-0.9.8.jar,jcommon-0.8.0.jar">
<param name="codebase" value="./ihm/applet/graphe/">
<param name="code" value="VisualisationCourbeCharge.class">
<param name="langue" value="fr">
<param name="unit" value="MW">
<param name="powerUnit" value="">
<param name="nomColonne" value="Valeur">
<param name="dateDebut" value="2007-02-01T00:00:00">
<param name="duree" value="1">
<param name="decalage" value="7">
<param name="nombreMaxJours" value="32">
<param name="anterieur" value="false">
<param name="existePuissanceSouscrite" value="false">
<param name="listColumn" value="Valeur;">
<param name="valuesTime" value="2007-02-01T00:00:00;2007-02-01T00:10:00;2007-02-01T00:20:00;2007-02-01T00:30:00;2007-02-01T00:40:00;2007-02-01T00:50:00;2007-02-01T01:00:00;2007-02-01T01:10:00;2007-02-01T01:20:00;2007-02-01T01:30:00;2007-02-01T01:40:00;2007-02-01T01:50:00;2007-02-01T02:00:00;2007-02-01T02:10:00;2007-02-01T02:20:00;2007-02-01T02:30:00;2007-02-01T02:40:00;2007-02-01T02:50:00;2007-02-01T03:00:00;2007-02-01T03:10:00;2007-02-01T03:20:00;2007-02-01T03:30:00;2007-02-01T03:40:00;2007-02-01T03:50:00;2007-02-01T04:00:00;2007-02-01T04:10:00;2007-02-01T04:20:00;2007-02-01T04:30:00;2007-02-01T04:40:00;2007-02-01T04:50:00;2007-02-01T05:00:00;2007-02-01T05:10:00;2007-02-01T05:20:00;2007-02-01T05:30:00;2007-02-01T05:40:00;2007-02-01T05:50:00;2007-02-01T06:00:00;2007-02-01T06:10:00;2007-02-01T06:20:00;2007-02-01T06:30:00;2007-02-01T06:40:00;2007-02-01T06:50:00;2007-02-01T07:00:00;2007-02-01T07:10:00;2007-02-01T07:20:00;2007-02-01T07:30:00;2007-02-01T07:40:00;2007-02-01T07:50:00;2007-02-01T08:00:00;2007-02-01T08:10:00;2007-02-01T08:20:00;2007-02-01T08:30:00;2007-02-01T08:40:00;2007-02-01T08:50:00;2007-02-01T09:00:00;2007-02-01T09:10:00;2007-02-01T09:20:00;2007-02-01T09:30:00;2007-02-01T09:40:00;2007-02-01T09:50:00;2007-02-01T10:00:00;2007-02-01T10:10:00;2007-02-01T10:20:00;2007-02-01T10:30:00;2007-02-01T10:40:00;2007-02-01T10:50:00;2007-02-01T11:00:00;2007-02-01T11:10:00;2007-02-01T11:20:00;2007-02-01T11:30:00;2007-02-01T11:40:00;2007-02-01T11:50:00;2007-02-01T12:00:00;2007-02-01T12:10:00;2007-02-01T12:20:00;2007-02-01T12:30:00;2007-02-01T12:40:00;2007-02-01T12:50:00;2007-02-01T13:00:00;2007-02-01T13:10:00;2007-02-01T13:20:00;2007-02-01T13:30:00;2007-02-01T13:40:00;2007-02-01T13:50:00;2007-02-01T14:00:00;2007-02-01T14:10:00;2007-02-01T14:20:00;2007-02-01T14:30:00;2007-02-01T14:40:00;2007-02-01T14:50:00;2007-02-01T15:00:00;2007-02-01T15:10:00;2007-02-01T15:20:00;2007-02-01T15:30:00;2007-02-01T15:40:00;2007-02-01T15:50:00;2007-02-01T16:00:00;2007-02-01T16:10:00;2007-02-01T16:20:00;2007-02-01T16:30:00;2007-02-01T16:40:00;2007-02-01T16:50:00;2007-02-01T17:00:00;2007-02-01T17:10:00;2007-02-01T17:20:00;2007-02-01T17:30:00;2007-02-01T17:40:00;2007-02-01T17:50:00;2007-02-01T18:00:00;2007-02-01T18:10:00;2007-02-01T18:20:00;2007-02-01T18:30:00;2007-02-01T18:40:00;2007-02-01T18:50:00;2007-02-01T19:00:00;2007-02-01T19:10:00;2007-02-01T19:20:00;2007-02-01T19:30:00;2007-02-01T19:40:00;2007-02-01T19:50:00;2007-02-01T20:00:00;2007-02-01T20:10:00;2007-02-01T20:20:00;2007-02-01T20:30:00;2007-02-01T20:40:00;2007-02-01T20:50:00;2007-02-01T21:00:00;2007-02-01T21:10:00;2007-02-01T21:20:00;2007-02-01T21:30:00;2007-02-01T21:40:00;2007-02-01T21:50:00;2007-02-01T22:00:00;2007-02-01T22:10:00;2007-02-01T22:20:00;2007-02-01T22:30:00;2007-02-01T22:40:00;2007-02-01T22:50:00;2007-02-01T23:00:00;2007-02-01T23:10:00;2007-02-01T23:20:00;2007-02-01T23:30:00;2007-02-01T23:40:00;2007-02-01T23:50:00;">
<param name="valuesNominal" value="0.5;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;">
<param name="valuesFormer" value="">
<param name="valuesPower" value="">
</object>

它在 JRE 1.4 下工作,但在 JRE 1.6 下不工作

最佳答案

将后续的 jar 文件添加到服务器中。 @Moataz Elmasry 的建议很好。

将您的jar 文件放入特定目录。 即/bin

关于applet - java.lang.NoClassDefFoundError 与我的小程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11393194/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com